gallium: include limits.h in p_config.h
authorDave Airlie <airlied@redhat.com>
Mon, 30 May 2011 10:21:16 +0000 (20:21 +1000)
committerDave Airlie <airlied@redhat.com>
Tue, 31 May 2011 07:28:48 +0000 (17:28 +1000)
We are getting inconsistent methods for endian detection (same answer when
it works, just doesn't work on some platforms) depending on whether __GLIBC__
is defined, which of course depends on include ordering before p_config.h

Just make p_config.h include limits.h to solve this.

Signed-off-by: Dave Airlie <airlied@redhat.com>
Reviewed-by: Brian Paul <brianp@vmware.com>
src/gallium/include/pipe/p_config.h

index 1818c8b9e9af1cbfddea25f9e4c9fbfaa547d717..40f6f2bcb5ffe6e159b03ad5aeb84121a1b425bd 100644 (file)
@@ -46,7 +46,7 @@
 #ifndef P_CONFIG_H_
 #define P_CONFIG_H_
 
-
+#include <limits.h>
 /*
  * Compiler
  */