From 038d68b156ff52482f0b1e8af991b7e392906c75 Mon Sep 17 00:00:00 2001 From: Jeffrey Morlan Date: Sat, 11 Jul 2009 16:16:39 +0000 Subject: [PATCH] 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 --- reactos/tools/rbuild/backend/mingw/mingw.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/reactos/tools/rbuild/backend/mingw/mingw.cpp b/reactos/tools/rbuild/backend/mingw/mingw.cpp index c5f78d7b978..fc81eb31008 100644 --- a/reactos/tools/rbuild/backend/mingw/mingw.cpp +++ b/reactos/tools/rbuild/backend/mingw/mingw.cpp @@ -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 ); }