summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/nouveau/Makefile.am
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2014-03-18 17:25:07 -0600
committerBrian Paul <[email protected]>2014-03-19 17:13:31 -0600
commiteaf9affa5ec9c5fd919e4207ab80b4677650ac67 (patch)
tree2db47edbaed792c0783a0b017b8556c1623ddaa3 /src/gallium/drivers/nouveau/Makefile.am
parente58071355e944138e01939df57f79affca24dec7 (diff)
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" <[email protected]> Reviewed-by: José Fonseca <[email protected]>
Diffstat (limited to 'src/gallium/drivers/nouveau/Makefile.am')
0 files changed, 0 insertions, 0 deletions