summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVlad Golovkin <[email protected]>2018-02-06 06:48:00 -0700
committerBrian Paul <[email protected]>2018-02-06 15:23:26 -0700
commitd919ff0f279b6007809220dc43af26fc25435356 (patch)
tree04f0dc0da047e380ad0924066a81104bfad3eccd
parent77bc74e674e39a65b79b804367e97d567963bb43 (diff)
util: remove redundant check for the __clang__ macro
Clang defines __GNUC__ macro, so one doesn't need to check __clang__ macro in this particular case. v2: added comment as per Brian Paul's suggestion Reviewed-by: Brian Paul <[email protected]>
-rw-r--r--src/util/macros.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/util/macros.h b/src/util/macros.h
index 432d5139301..e3c785af508 100644
--- a/src/util/macros.h
+++ b/src/util/macros.h
@@ -137,8 +137,9 @@ do { \
#endif
/* Forced function inlining */
+/* Note: Clang also sets __GNUC__ (see other cases below) */
#ifndef ALWAYS_INLINE
-# if defined(__GNUC__) || defined(__clang__)
+# if defined(__GNUC__)
# define ALWAYS_INLINE inline __attribute__((always_inline))
# elif defined(_MSC_VER)
# define ALWAYS_INLINE __forceinline