[Mesa-dev] [PATCH 2/2] util: remove support for GCC older than 4.3.0

Timothy Arceri timothy.arceri at collabora.com
Tue Jan 26 14:04:14 PST 2016


From: Timothy Arceri <t_arceri at yahoo.com.au>

---
 src/util/macros.h | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/src/util/macros.h b/src/util/macros.h
index 0c8958f..55d5424 100644
--- a/src/util/macros.h
+++ b/src/util/macros.h
@@ -160,9 +160,7 @@ do {                       \
  * trivially destructible themselves.
  */
 #   if defined(__GNUC__)
-#      if ((__GNUC__ > 4) || ((__GNUC__ == 4) && (__GNUC_MINOR__ >= 3)))
-#         define HAS_TRIVIAL_DESTRUCTOR(T) __has_trivial_destructor(T)
-#      endif
+#      define HAS_TRIVIAL_DESTRUCTOR(T) __has_trivial_destructor(T)
 #   elif (defined(__clang__) && defined(__has_feature))
 #      if __has_feature(has_trivial_destructor)
 #         define HAS_TRIVIAL_DESTRUCTOR(T) __has_trivial_destructor(T)
-- 
2.5.0



More information about the mesa-dev mailing list