Mesa (master): mesa: Include compiler.h for ASSERT.
Chia-I Wu
olv at kemper.freedesktop.org
Fri Aug 20 11:30:02 UTC 2010
Module: Mesa
Branch: master
Commit: 8043bf555e14cf20826753d59d66d0cef7a5e5a0
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=8043bf555e14cf20826753d59d66d0cef7a5e5a0
Author: Chia-I Wu <olv at lunarg.com>
Date: Fri Aug 20 10:27:26 2010 +0800
mesa: Include compiler.h for ASSERT.
mfeatures.h defines ASSERT_NO_FEATURE to ASSERT, which is defined in
compiler.h. Header files using the macro should include compiler.h.
---
src/mesa/main/accum.h | 2 ++
src/mesa/main/attrib.h | 2 ++
src/mesa/main/colortab.h | 2 ++
src/mesa/main/convolve.h | 2 ++
src/mesa/main/dlist.h | 2 ++
src/mesa/main/feedback.h | 2 ++
src/mesa/state_tracker/st_cb_accum.h | 2 ++
7 files changed, 14 insertions(+), 0 deletions(-)
diff --git a/src/mesa/main/accum.h b/src/mesa/main/accum.h
index 63740f0..c2b74b2 100644
--- a/src/mesa/main/accum.h
+++ b/src/mesa/main/accum.h
@@ -55,6 +55,8 @@ _mesa_init_accum_dispatch(struct _glapi_table *disp);
#else /* FEATURE_accum */
+#include "main/compiler.h"
+
#define _MESA_INIT_ACCUM_FUNCTIONS(driver, impl) do { } while (0)
static INLINE void
diff --git a/src/mesa/main/attrib.h b/src/mesa/main/attrib.h
index 6b48a17..83b28a6 100644
--- a/src/mesa/main/attrib.h
+++ b/src/mesa/main/attrib.h
@@ -48,6 +48,8 @@ _mesa_init_attrib_dispatch(struct _glapi_table *disp);
#else /* FEATURE_attrib_stack */
+#include "main/compiler.h"
+
static INLINE void
_mesa_PushClientAttrib( GLbitfield mask )
{
diff --git a/src/mesa/main/colortab.h b/src/mesa/main/colortab.h
index 652fb58..744f092 100644
--- a/src/mesa/main/colortab.h
+++ b/src/mesa/main/colortab.h
@@ -53,6 +53,8 @@ _mesa_init_colortable_dispatch(struct _glapi_table *disp);
#else /* FEATURE_colortable */
+#include "main/compiler.h"
+
#define _MESA_INIT_COLORTABLE_FUNCTIONS(driver, impl) do { } while (0)
static INLINE void GLAPIENTRY
diff --git a/src/mesa/main/convolve.h b/src/mesa/main/convolve.h
index 59492bc..d140188 100644
--- a/src/mesa/main/convolve.h
+++ b/src/mesa/main/convolve.h
@@ -70,6 +70,8 @@ _mesa_init_convolve_dispatch(struct _glapi_table *disp);
#else /* FEATURE_convolve */
+#include "main/compiler.h"
+
#define _MESA_INIT_CONVOLVE_FUNCTIONS(driver, impl) do { } while (0)
static INLINE void GLAPIENTRY
diff --git a/src/mesa/main/dlist.h b/src/mesa/main/dlist.h
index f8255fa..d3f5c5c 100644
--- a/src/mesa/main/dlist.h
+++ b/src/mesa/main/dlist.h
@@ -81,6 +81,8 @@ extern void _mesa_init_dlist_dispatch(struct _glapi_table *disp);
#else /* FEATURE_dlist */
+#include "main/compiler.h"
+
#define _MESA_INIT_DLIST_FUNCTIONS(driver, impl) do { } while (0)
#define _MESA_INIT_DLIST_VTXFMT(vfmt, impl) do { } while (0)
diff --git a/src/mesa/main/feedback.h b/src/mesa/main/feedback.h
index 3e8283e..0762930 100644
--- a/src/mesa/main/feedback.h
+++ b/src/mesa/main/feedback.h
@@ -63,6 +63,8 @@ _mesa_init_feedback_dispatch(struct _glapi_table *disp);
#else /* FEATURE_feedback */
+#include "main/compiler.h"
+
#define _MESA_INIT_FEEDBACK_FUNCTIONS(driver, impl) do { } while (0)
static INLINE void
diff --git a/src/mesa/state_tracker/st_cb_accum.h b/src/mesa/state_tracker/st_cb_accum.h
index 7d52481..06425dc 100644
--- a/src/mesa/state_tracker/st_cb_accum.h
+++ b/src/mesa/state_tracker/st_cb_accum.h
@@ -41,6 +41,8 @@ extern void st_init_accum_functions(struct dd_function_table *functions);
#else
+#include "main/compiler.h"
+
static INLINE void
st_clear_accum_buffer(GLcontext *ctx, struct gl_renderbuffer *rb)
{
More information about the mesa-commit
mailing list