diff options
-rw-r--r-- | lib/ldb/include/ldb.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/ldb/include/ldb.h b/lib/ldb/include/ldb.h index 3cba0f4d543..7f53e6420e1 100644 --- a/lib/ldb/include/ldb.h +++ b/lib/ldb/include/ldb.h @@ -89,7 +89,7 @@ struct ldb_val { #endif #ifndef _DEPRECATED_ -#if (__GNUC__ >= 3) && (__GNUC_MINOR__ >= 1 ) +#if __has_attribute(deprecated) || ( (__GNUC__ >= 3) && (__GNUC_MINOR__ >= 1 ) ) #define _DEPRECATED_ __attribute__ ((deprecated)) #else #define _DEPRECATED_ |