[Spice-devel] [PATCH 7/8] mingw32 build: disable ms compiler pragmas for gcc

Gerd Hoffmann kraxel at redhat.com
Thu Jul 8 02:40:56 PDT 2010


Signed-off-by: Gerd Hoffmann <kraxel at redhat.com>
---
 client/common.h |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/client/common.h b/client/common.h
index c0ce442..0a8e082 100644
--- a/client/common.h
+++ b/client/common.h
@@ -36,9 +36,11 @@
 #include <winsock2.h>
 #include <windows.h>
 
+#ifndef __GNUC__
 #pragma warning(disable:4355)
 #pragma warning(disable:4996)
 #pragma warning(disable:4200)
+#endif
 
 #define strcasecmp stricmp
 
-- 
1.7.1



More information about the Spice-devel mailing list