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
This commit is contained in:
parent
76779449b9
commit
7b6d45f50f
@ -25,7 +25,7 @@
|
|||||||
* example taken from: http://rlove.org/log/2005102601
|
* example taken from: http://rlove.org/log/2005102601
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#if __GNUC__ >= 3
|
#if defined(__GNUC__) && (__GNUC__ >= 3)
|
||||||
# define mpd_const __attribute__ ((const))
|
# define mpd_const __attribute__ ((const))
|
||||||
# define mpd_deprecated __attribute__ ((deprecated))
|
# define mpd_deprecated __attribute__ ((deprecated))
|
||||||
# define mpd_malloc __attribute__ ((malloc))
|
# define mpd_malloc __attribute__ ((malloc))
|
||||||
|
Loading…
Reference in New Issue
Block a user