mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-11-10 19:36:18 +01:00
Merge branch 'compiler-define-check' into 'master'
Check if compiler symbols are defined before using them See merge request GNOME/glib!923
This commit is contained in:
commit
db5bee12ea
@ -988,8 +988,8 @@
|
||||
#endif
|
||||
|
||||
#if !defined(GLIB_DISABLE_DEPRECATION_WARNINGS) && \
|
||||
(__GNUC__ > 6 || (__GNUC__ == 6 && __GNUC_MINOR__ >= 1) || \
|
||||
__clang_major__ > 3 || (__clang_major__ == 3 && __clang_minor__ >= 0))
|
||||
((defined (__GNUC__) && (__GNUC__ > 6 || (__GNUC__ == 6 && __GNUC_MINOR__ >= 1))) || \
|
||||
(defined (__clang_major__) && (__clang_major__ > 3 || (__clang_major__ == 3 && __clang_minor__ >= 0))))
|
||||
#define GLIB_DEPRECATED_ENUMERATOR G_DEPRECATED
|
||||
#define GLIB_DEPRECATED_ENUMERATOR_FOR(f) G_DEPRECATED_FOR(f)
|
||||
#define GLIB_UNAVAILABLE_ENUMERATOR(maj,min) G_UNAVAILABLE(maj,min)
|
||||
@ -1000,8 +1000,8 @@
|
||||
#endif
|
||||
|
||||
#if !defined(GLIB_DISABLE_DEPRECATION_WARNINGS) && \
|
||||
(__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 1) || \
|
||||
__clang_major__ > 3 || (__clang_major__ == 3 && __clang_minor__ >= 0))
|
||||
((defined (__GNUC__) && (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 1))) || \
|
||||
(defined (__clang_major__) && (__clang_major__ > 3 || (__clang_major__ == 3 && __clang_minor__ >= 0))))
|
||||
#define GLIB_DEPRECATED_TYPE G_DEPRECATED
|
||||
#define GLIB_DEPRECATED_TYPE_FOR(f) G_DEPRECATED_FOR(f)
|
||||
#define GLIB_UNAVAILABLE_TYPE(maj,min) G_UNAVAILABLE(maj,min)
|
||||
|
Loading…
Reference in New Issue
Block a user