aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2006-08-30 07:56:22 +0000
committerEric Wong <normalperson@yhbt.net>2006-08-30 07:56:22 +0000
commit7b6d45f50fa49f4da56cc4ae29758a01ec958792 (patch)
tree32a5c42ce51a1ca33987d17b4144297d2c912cf0
parent76779449b979304cbf25674408cbe75dc2f3245a (diff)
downloadmpd-7b6d45f50fa49f4da56cc4ae29758a01ec958792.tar.gz
mpd-7b6d45f50fa49f4da56cc4ae29758a01ec958792.tar.xz
mpd-7b6d45f50fa49f4da56cc4ae29758a01ec958792.zip
gcc.h: make sure __GNUC__ is defined before checking it's value
git-svn-id: https://svn.musicpd.org/mpd/trunk@4724 09075e82-0dd4-0310-85a5-a0d7c8717e4f
Diffstat (limited to '')
-rw-r--r--src/gcc.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gcc.h b/src/gcc.h
index bd55f732e..c6e53f5bd 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))