summaryrefslogtreecommitdiff
path: root/src/common/nullpo.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/common/nullpo.h')
-rw-r--r--src/common/nullpo.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/common/nullpo.h b/src/common/nullpo.h
index 71525dd00..0238d2b6d 100644
--- a/src/common/nullpo.h
+++ b/src/common/nullpo.h
@@ -19,8 +19,9 @@
#endif
#endif
-#ifdef _WIN32
-#define __attribute__(x) /* nothing */
+
+#if !defined(__GNUC__) && !defined(MINGW)
+# define __attribute__(x) /* nothing */
#endif