disable glib-ctor on win32
authorRyan Lortie <desrt@desrt.ca>
Mon, 19 Sep 2011 04:55:16 +0000 (00:55 -0400)
committerRyan Lortie <desrt@desrt.ca>
Wed, 21 Sep 2011 20:06:55 +0000 (16:06 -0400)
glib/glib-ctor.h

index 12df4dd..a7584ea 100644 (file)
@@ -1,6 +1,6 @@
 #ifndef __GLIB_CTOR_H__
 
-#ifdef __GNUC__
+#if defined (__GNUC__) && !defined (_WIN32)
 #define GLIB_CTOR(func) \
   __attribute__((constructor)) static void func (void)
 #define GLIB_ENSURE_CTOR(func) G_STMT_START { } G_STMT_END