winedbg: Fix the check for GCC version number around db_printf format checking.

Gerald Pfeifer gerald at pfeifer.com
Sun Sep 19 04:22:37 CDT 2010


I believe it was commit c4efb23d where Eric tried to fix this already,
alas GCC_VERSION is used as an example in the man page for GCC's cpp,
not a macro actually defined -- and it can't, or it would violate the
namespace.  (It's also not used anywhere else in Wine.)

This transforms this into the proper check.

Gerald

---
 programs/winedbg/db_disasm64.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/programs/winedbg/db_disasm64.c b/programs/winedbg/db_disasm64.c
index 7cf1394..fe6a538 100644
--- a/programs/winedbg/db_disasm64.c
+++ b/programs/winedbg/db_disasm64.c
@@ -32,7 +32,7 @@
 #include <stdio.h>
 #include "debugger.h"
 
-#if defined(__GNUC__) && (GCC_VERSION >= 30000)
+#if defined(__GNUC__) && (__GNUC__ >= 3)
 static int             (*db_printf)(const char* format, ...) __attribute__((format (printf,1,2)));
 #else
 static int             (*db_printf)(const char* format, ...);
-- 
1.7.2.2



More information about the wine-patches mailing list