aboutsummaryrefslogtreecommitdiff
path: root/src/gcc.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/gcc.h')
-rw-r--r--src/gcc.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gcc.h b/src/gcc.h
index bd55f732..c6e53f5b 100644
--- a/src/gcc.h
+++ b/src/gcc.h
@@ -25,7 +25,7 @@
* example taken from: http://rlove.org/log/2005102601
*/
-#if __GNUC__ >= 3
+#if defined(__GNUC__) && (__GNUC__ >= 3)
# define mpd_const __attribute__ ((const))
# define mpd_deprecated __attribute__ ((deprecated))
# define mpd_malloc __attribute__ ((malloc))