Don't use non-portable %zd format. Instead, use %d and cast the variable to an int to ensure printf can read the argument properly

svn path=/trunk/; revision=41889
This commit is contained in:
Jeffrey Morlan 2009-07-11 16:16:39 +00:00
parent 8022a4015e
commit 038d68b156

View file

@ -499,8 +499,8 @@ MingwBackend::GenerateGlobalVariables () const
if ( ModuleHandlerInformations[i].cflags && ModuleHandlerInformations[i].cflags[0] )
{
fprintf ( fMakefile,
"MODULETYPE%zd_%sFLAGS:=%s\n",
i,
"MODULETYPE%d_%sFLAGS:=%s\n",
(int)i,
"C",
ModuleHandlerInformations[i].cflags );
}
@ -508,8 +508,8 @@ MingwBackend::GenerateGlobalVariables () const
if ( ModuleHandlerInformations[i].cflags && ModuleHandlerInformations[i].cflags[0] )
{
fprintf ( fMakefile,
"MODULETYPE%zd_%sFLAGS:=%s\n",
i,
"MODULETYPE%d_%sFLAGS:=%s\n",
(int)i,
"CXX",
ModuleHandlerInformations[i].cflags );
}
@ -517,8 +517,8 @@ MingwBackend::GenerateGlobalVariables () const
if ( ModuleHandlerInformations[i].nasmflags && ModuleHandlerInformations[i].nasmflags[0] )
{
fprintf ( fMakefile,
"MODULETYPE%zd_%sFLAGS:=%s\n",
i,
"MODULETYPE%d_%sFLAGS:=%s\n",
(int)i,
"NASM",
ModuleHandlerInformations[i].nasmflags );
}