Fix broken build with -Wundefined
authorKjartan Maraas <kmaraas@gnome.org>
Tue, 17 Jan 2012 16:10:19 +0000 (17:10 +0100)
committerKjartan Maraas <kmaraas@gnome.org>
Tue, 17 Jan 2012 16:10:19 +0000 (17:10 +0100)
glib/gmacros.h

index 4fc20bf..accd55a 100644 (file)
 #define G_DEFINE_CONSTRUCTOR(_func) static void __attribute__((constructor)) _func (void);
 #define G_DEFINE_DESTRUCTOR(_func) static void __attribute__((destructor)) _func (void);
 
-#elif _MSC_VER >= 1500
+#elif defined (_MSC_VER) && (_MSC_VER >= 1500)
 /* Visual studio 2008 and later has _Pragma */
 
 #define G_HAS_CONSTRUCTORS 1