Mesa (master): mesa: remove support for GCC older than 3.3.0
Timothy Arceri
tarceri at kemper.freedesktop.org
Tue Dec 16 21:38:11 UTC 2014
Module: Mesa
Branch: master
Commit: 5eec7c8ab8bddce1de45eee6c48b7078f41a4e2f
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=5eec7c8ab8bddce1de45eee6c48b7078f41a4e2f
Author: Timothy Arceri <t_arceri at yahoo.com.au>
Date: Fri Dec 12 19:05:22 2014 +1100
mesa: remove support for GCC older than 3.3.0
GCC >=3.3 has been required since 9aa3aa71386394725ce88df463d6183f62777ee5
Signed-off-by: Timothy Arceri <t_arceri at yahoo.com.au>
Reviewed-By: Jose Fonseca <jfonseca at vmware.com>
Reviewed-by: Ian Romanick <ian.d.romanick at intel.com>
Reviewed-by: Matt Turner <mattst88 at gmail.com>
---
include/c99/stdbool.h | 3 +--
include/c99_compat.h | 6 +-----
src/glx/dri_common.h | 2 +-
3 files changed, 3 insertions(+), 8 deletions(-)
diff --git a/include/c99/stdbool.h b/include/c99/stdbool.h
index 99af1a0..856be5f 100644
--- a/include/c99/stdbool.h
+++ b/include/c99/stdbool.h
@@ -35,8 +35,7 @@
#define bool _Bool
/* For compilers that don't have the builtin _Bool type. */
-#if (defined(_MSC_VER) && _MSC_VER < 1800) || \
- (defined __GNUC__&& __STDC_VERSION__ < 199901L && __GNUC__ < 3)
+#if (defined(_MSC_VER) && _MSC_VER < 1800)
typedef unsigned char _Bool;
#endif
diff --git a/include/c99_compat.h b/include/c99_compat.h
index 429c601..e5d0ae4 100644
--- a/include/c99_compat.h
+++ b/include/c99_compat.h
@@ -114,11 +114,7 @@
# elif defined(__SUNPRO_C) && defined(__C99FEATURES__)
/* C99 */
# elif defined(__GNUC__)
-# if __GNUC__ >= 2
-# define __func__ __FUNCTION__
-# else
-# define __func__ "<unknown>"
-# endif
+# define __func__ __FUNCTION__
# elif defined(_MSC_VER)
# if _MSC_VER >= 1300
# define __func__ __FUNCTION__
diff --git a/src/glx/dri_common.h b/src/glx/dri_common.h
index 6234fd8..5cd150a 100644
--- a/src/glx/dri_common.h
+++ b/src/glx/dri_common.h
@@ -40,7 +40,7 @@
#include <stdbool.h>
#include "loader.h"
-#if (__GNUC__ >= 3)
+#if (__GNUC__)
#define PRINTFLIKE(f, a) __attribute__ ((format(__printf__, f, a)))
#else
#define PRINTFLIKE(f, a)
More information about the mesa-commit
mailing list