projects
/
platform
/
upstream
/
glib.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d825828
)
Fix broken build with -Wundefined
author
Kjartan Maraas
<kmaraas@gnome.org>
Tue, 17 Jan 2012 16:10:19 +0000
(17:10 +0100)
committer
Kjartan Maraas
<kmaraas@gnome.org>
Tue, 17 Jan 2012 16:10:19 +0000
(17:10 +0100)
glib/gmacros.h
patch
|
blob
|
history
diff --git
a/glib/gmacros.h
b/glib/gmacros.h
index 4fc20bf36e3cfc9bac0e82b71b0f8b302c5958d6..accd55ab4f2bfe6bdd68feab9ae9d4cc21682fa6 100644
(file)
--- a/
glib/gmacros.h
+++ b/
glib/gmacros.h
@@
-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