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