summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--libass/ass.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/libass/ass.h b/libass/ass.h
index d9f3404..6e871fb 100644
--- a/libass/ass.h
+++ b/libass/ass.h
@@ -31,7 +31,11 @@ extern "C" {
#endif
#if (defined(__GNUC__) && ((__GNUC__ > 3) || (__GNUC__ == 3 && __GNUC_MINOR__ >= 1))) || defined(__clang__)
- #define ASS_DEPRECATED(msg) __attribute__((deprecated(msg)))
+ #if __GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 5) || defined(__clang__)
+ #define ASS_DEPRECATED(msg) __attribute__((deprecated(msg)))
+ #else
+ #define ASS_DEPRECATED(msg) __attribute__((deprecated))
+ #endif
#if __GNUC__ > 5 || defined(__clang__)
#define ASS_DEPRECATED_ENUM(msg) __attribute__((deprecated(msg)))
#else