summaryrefslogtreecommitdiffstats
path: root/src/gallium/include
diff options
context:
space:
mode:
authorJosé Fonseca <[email protected]>2008-02-23 14:14:54 +0900
committerJosé Fonseca <[email protected]>2008-02-23 14:14:54 +0900
commite8de5c70e3370e9112a5facc870075eea60c4c46 (patch)
tree02886c2ff477e3bcca66d4541a3e0777f5406aae /src/gallium/include
parentbed547cb8223659a7f0d15a91c2edb5f822ba855 (diff)
Bring in several forgotten MSVC fixes.
Diffstat (limited to 'src/gallium/include')
-rw-r--r--src/gallium/include/pipe/p_compiler.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/gallium/include/pipe/p_compiler.h b/src/gallium/include/pipe/p_compiler.h
index ab527f2afe3..91f3d2ac2d9 100644
--- a/src/gallium/include/pipe/p_compiler.h
+++ b/src/gallium/include/pipe/p_compiler.h
@@ -42,6 +42,14 @@
#endif
+#if defined(__MSC__)
+
+/* Avoid 'expression is always true' warning */
+#pragma warning(disable: 4296)
+
+#endif /* __MSC__ */
+
+
typedef unsigned int uint;
typedef unsigned char ubyte;
typedef unsigned char boolean;