Fix broken build with -Wundefined

This commit is contained in:
Kjartan Maraas 2012-01-17 17:10:19 +01:00
parent d825828b7b
commit 3fe710c0b5

View File

@ -343,7 +343,7 @@
#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