mesa: remove support for GCC older than 3.3.0
GCC >=3.3 has been required since 9aa3aa7138
Signed-off-by: Timothy Arceri <t_arceri@yahoo.com.au>
Reviewed-By: Jose Fonseca <jfonseca@vmware.com>
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Matt Turner <mattst88@gmail.com>
This commit is contained in:
@@ -35,8 +35,7 @@
|
|||||||
#define bool _Bool
|
#define bool _Bool
|
||||||
|
|
||||||
/* For compilers that don't have the builtin _Bool type. */
|
/* For compilers that don't have the builtin _Bool type. */
|
||||||
#if (defined(_MSC_VER) && _MSC_VER < 1800) || \
|
#if (defined(_MSC_VER) && _MSC_VER < 1800)
|
||||||
(defined __GNUC__&& __STDC_VERSION__ < 199901L && __GNUC__ < 3)
|
|
||||||
typedef unsigned char _Bool;
|
typedef unsigned char _Bool;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@@ -114,11 +114,7 @@
|
|||||||
# elif defined(__SUNPRO_C) && defined(__C99FEATURES__)
|
# elif defined(__SUNPRO_C) && defined(__C99FEATURES__)
|
||||||
/* C99 */
|
/* C99 */
|
||||||
# elif defined(__GNUC__)
|
# elif defined(__GNUC__)
|
||||||
# if __GNUC__ >= 2
|
# define __func__ __FUNCTION__
|
||||||
# define __func__ __FUNCTION__
|
|
||||||
# else
|
|
||||||
# define __func__ "<unknown>"
|
|
||||||
# endif
|
|
||||||
# elif defined(_MSC_VER)
|
# elif defined(_MSC_VER)
|
||||||
# if _MSC_VER >= 1300
|
# if _MSC_VER >= 1300
|
||||||
# define __func__ __FUNCTION__
|
# define __func__ __FUNCTION__
|
||||||
|
@@ -40,7 +40,7 @@
|
|||||||
#include <stdbool.h>
|
#include <stdbool.h>
|
||||||
#include "loader.h"
|
#include "loader.h"
|
||||||
|
|
||||||
#if (__GNUC__ >= 3)
|
#if (__GNUC__)
|
||||||
#define PRINTFLIKE(f, a) __attribute__ ((format(__printf__, f, a)))
|
#define PRINTFLIKE(f, a) __attribute__ ((format(__printf__, f, a)))
|
||||||
#else
|
#else
|
||||||
#define PRINTFLIKE(f, a)
|
#define PRINTFLIKE(f, a)
|
||||||
|
Reference in New Issue
Block a user