Skip to content

Commit 8b5e0de

Browse files
committed
ResourceEmbedder : Add include of inttypes.h when output mode is 32 bits
1 parent e9c3e93 commit 8b5e0de

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

ResourceEmbedder/ResourceEmbedder.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -225,6 +225,11 @@ void ExportFile(const char* pName, const char* pInputFilename, const char* pOutp
225225
fprintf(pHeaderFile, "#define %s\n\n", sDefine.c_str());
226226

227227
fprintf(pSourceFile, "#include \"%s.h\"\n", sName.c_str());
228+
229+
if (eOutputMode == E_OUTPUT_MODE_32_LE || eOutputMode == E_OUTPUT_MODE_32_BE)
230+
{
231+
fprintf(pSourceFile, "#include <inttypes.h>\n");
232+
}
228233

229234
for (size_t iNamespace = 0; iNamespace < oNamespaces.size(); ++iNamespace)
230235
{

0 commit comments

Comments
 (0)