summaryrefslogtreecommitdiff
path: root/lib/mesa/src/util/macros.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/mesa/src/util/macros.h')
-rw-r--r--lib/mesa/src/util/macros.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/mesa/src/util/macros.h b/lib/mesa/src/util/macros.h
index 27d1b6292..efb896f4c 100644
--- a/lib/mesa/src/util/macros.h
+++ b/lib/mesa/src/util/macros.h
@@ -167,12 +167,12 @@ do { \
* performs no action and all member variables and base classes are
* trivially destructible themselves.
*/
-# if defined(__GNUC__)
-# if ((__GNUC__ > 4) || ((__GNUC__ == 4) && (__GNUC_MINOR__ >= 3)))
+# if (defined(__clang__) && defined(__has_feature))
+# if __has_feature(has_trivial_destructor)
# define HAS_TRIVIAL_DESTRUCTOR(T) __has_trivial_destructor(T)
# endif
-# elif (defined(__clang__) && defined(__has_feature))
-# if __has_feature(has_trivial_destructor)
+# elif defined(__GNUC__)
+# if ((__GNUC__ > 4) || ((__GNUC__ == 4) && (__GNUC_MINOR__ >= 3)))
# define HAS_TRIVIAL_DESTRUCTOR(T) __has_trivial_destructor(T)
# endif
# endif