Skip to content

Commit

Permalink
ResourceEmbedder : Add include of inttypes.h when output mode is 32 bits
Browse files Browse the repository at this point in the history
  • Loading branch information
thennequin committed Jun 19, 2022
1 parent e9c3e93 commit 8b5e0de
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions ResourceEmbedder/ResourceEmbedder.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -225,6 +225,11 @@ void ExportFile(const char* pName, const char* pInputFilename, const char* pOutp
fprintf(pHeaderFile, "#define %s\n\n", sDefine.c_str());

fprintf(pSourceFile, "#include \"%s.h\"\n", sName.c_str());

if (eOutputMode == E_OUTPUT_MODE_32_LE || eOutputMode == E_OUTPUT_MODE_32_BE)
{
fprintf(pSourceFile, "#include <inttypes.h>\n");
}

for (size_t iNamespace = 0; iNamespace < oNamespaces.size(); ++iNamespace)
{
Expand Down

0 comments on commit 8b5e0de

Please sign in to comment.