summaryrefslogtreecommitdiffstats
path: root/src/util
diff options
context:
space:
mode:
authorJose Fonseca <jfonseca@vmware.com>2016-04-18 11:41:11 +0100
committerJose Fonseca <jfonseca@vmware.com>2016-04-26 17:17:00 +0100
commitc068610a7df370af94fd6177598a35c4425a75f9 (patch)
treef18989aea81a9711687987a5aabaaf147194cc45 /src/util
parent940da2ce0ec989c8c8f1df2ad26f4a95014f4d08 (diff)
downloadexternal_mesa3d-c068610a7df370af94fd6177598a35c4425a75f9.zip
external_mesa3d-c068610a7df370af94fd6177598a35c4425a75f9.tar.gz
external_mesa3d-c068610a7df370af94fd6177598a35c4425a75f9.tar.bz2
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 <sroland@vmware.com> Reviewed-by: Brian Paul <brianp@vmware.com>
Diffstat (limited to 'src/util')
-rw-r--r--src/util/macros.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/util/macros.h b/src/util/macros.h
index f081bb8..773e12f 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)))