mesa/include
Brian Paul 352b9e8faf c11/threads: don't include assert.h if the assert macro is already defined
In the gallium code, the assert() macro could come from either the
system's assert.h file (via c11/threads.h) or from gallium's u_debug.h.
It looks like all known assert.h files unconditionally #undef assert
before defining their own version.  So the assert you get depends on
whether threads.h or u_debug.h was included last.

In the gallium code we really want to use the assert() from u_debug.h
(it behaves better on Windows).  In gallium, c11/threads.h is only
included after u_debug.h in the os_thread.h wrapper.  So Adding
an #ifndef assert test in the threads*.h files avoids using the system's
assert().

Cc: "10.1" <mesa-stable@lists.freedesktop.org>
Reviewed-by: José Fonseca <jfonseca@vmware.com>
(cherry picked from commit eaf9affa5e)
2014-04-14 11:48:51 -07:00
..
c11 c11/threads: don't include assert.h if the assert macro is already defined 2014-04-14 11:48:51 -07:00
c99 mesa: fixes for MSVC 2013 2013-10-22 08:39:40 -06:00
CL clover: Import OpenCL state tracker. 2012-05-11 12:39:44 +02:00
EGL s/Tungsten Graphics/VMware/ 2014-01-17 20:00:32 +00:00
GL dri3, i915, i965: Add __DRI_IMAGE_FOURCC_SARGB8888 2014-01-30 17:29:23 -08:00
GLES gles: Update glext.h to revision 20798. 2013-07-29 10:34:42 -07:00
GLES2 gles2: Update gl2ext.h to revision 24614. 2014-01-23 11:33:22 -08:00
GLES3 gles3: Update gl3.h to revision 24614. 2014-01-23 11:33:22 -08:00
HaikuGL haiku: change atomic int to non-volatile 2014-01-26 18:56:05 -06:00
KHR Update KHRONOS_APICALL for _WIN32 platform. 2010-05-31 11:31:07 +08:00
pci_ids loader: add special logic to distinguish nouveau from nouveau_vieux 2014-04-14 11:48:50 -07:00
VG st/vega: Update to latest headers. 2010-12-01 11:23:51 +08:00
c99_compat.h scons: Define _ALLOW_KEYWORD_MACROS on MSVC builds. 2013-03-14 19:01:10 +00:00