Do not use 'deprecated' attribute on gcc < 3.1.

It causes lots of spurious warnings in build logs.
suggestion to make the test gcc >= 3.1 millert@, ok todd@, miod@
This commit is contained in:
matthieu 2009-09-13 15:02:03 +00:00
parent 93a6b2b0b1
commit 00a307f8e4

View File

@ -251,7 +251,7 @@ extern RESTYPE TypeMask;
* Please use the noted replacements instead.
*/
#ifdef __GNUC__
#if defined(__GNUC__) && (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 1))
#define X_DEPRECATED __attribute__((deprecated))
#else
#define X_DEPRECATED