Mesa (master): gallium: include limits.h in p_config.h
Dave Airlie
airlied at kemper.freedesktop.org
Tue May 31 07:41:24 UTC 2011
Module: Mesa
Branch: master
Commit: d2ede5e64809915a9432bd8aa77f56bd82935f3b
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=d2ede5e64809915a9432bd8aa77f56bd82935f3b
Author: Dave Airlie <airlied at redhat.com>
Date: Mon May 30 20:21:16 2011 +1000
gallium: include limits.h in p_config.h
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 at redhat.com>
Reviewed-by: Brian Paul <brianp at vmware.com>
---
src/gallium/include/pipe/p_config.h | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/src/gallium/include/pipe/p_config.h b/src/gallium/include/pipe/p_config.h
index 1818c8b..40f6f2b 100644
--- a/src/gallium/include/pipe/p_config.h
+++ b/src/gallium/include/pipe/p_config.h
@@ -46,7 +46,7 @@
#ifndef P_CONFIG_H_
#define P_CONFIG_H_
-
+#include <limits.h>
/*
* Compiler
*/
More information about the mesa-commit
mailing list