summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormymax@amazon.com <mymax@amazon.com@0039d316-1c4b-4281-b951-d872f2087c98>2013-07-04 02:29:02 +0000
committermymax@amazon.com <mymax@amazon.com@0039d316-1c4b-4281-b951-d872f2087c98>2013-07-04 02:29:02 +0000
commit99703ab948d16a83979d70d595e48cc5a0f06880 (patch)
tree183a7daf9d32652209d7440014f1cfac4c220edb
parent9511fddfee83830f3c0479b5dde791e87cecd9bd (diff)
downloadsrc-99703ab948d16a83979d70d595e48cc5a0f06880.tar.gz
Can't #define assert() before including assert.h on Android
Android's assert.h #errors if assert() has already been defined. At least one file in mesa includes u_debug.h (which #defines assert()) before including assert.h. This makes sure that assert.h always gets included at the beginning of u_debug.h. Review URL: https://chromiumcodereview.appspot.com/18570002 git-svn-id: svn://svn.chromium.org/chrome/trunk/deps/third_party/mesa@210108 0039d316-1c4b-4281-b951-d872f2087c98
-rw-r--r--src/gallium/auxiliary/util/u_debug.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gallium/auxiliary/util/u_debug.h b/src/gallium/auxiliary/util/u_debug.h
index 06470f6..583984f 100644
--- a/src/gallium/auxiliary/util/u_debug.h
+++ b/src/gallium/auxiliary/util/u_debug.h
@@ -39,6 +39,7 @@
#define U_DEBUG_H_
+#include <assert.h>
#include "os/os_misc.h"