diff options
author | Jose Fonseca <[email protected]> | 2016-04-18 11:41:11 +0100 |
---|---|---|
committer | Jose Fonseca <[email protected]> | 2016-04-26 17:17:00 +0100 |
commit | c068610a7df370af94fd6177598a35c4425a75f9 (patch) | |
tree | f18989aea81a9711687987a5aabaaf147194cc45 /src/util/macros.h | |
parent | 940da2ce0ec989c8c8f1df2ad26f4a95014f4d08 (diff) |
scons: Move fallback HAVE_* definitions to headers.
These were being defined in SCons, but it's not practical:
- we actually need to include Gallium headers from external source trees, with
completely disjoint build infrastructure, and it's unsustainable to
replicate the HAVE_xxx checks or even hard-coded defines across
everywhere.
- checking compiler version via command line doesn't really work due to
Clang essentially being like a cameleon which can fake either GCC or
MSVC
There's no change for autoconf.
Reviewed-by: Roland Scheidegger <[email protected]>
Reviewed-by: Brian Paul <[email protected]>
Diffstat (limited to 'src/util/macros.h')
-rw-r--r-- | src/util/macros.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/util/macros.h b/src/util/macros.h index f081bb82177..773e12ffdeb 100644 --- a/src/util/macros.h +++ b/src/util/macros.h @@ -26,6 +26,8 @@ #include <assert.h> +#include "c99_compat.h" + /* Compute the size of an array */ #ifndef ARRAY_SIZE # define ARRAY_SIZE(x) (sizeof(x) / sizeof(*(x))) |