summaryrefslogtreecommitdiff
path: root/src/gallium/include/pipe/p_compiler.h
diff options
context:
space:
mode:
authorJosé Fonseca <jrfonseca@tungstengraphics.com>2008-02-23 14:14:54 +0900
committerJosé Fonseca <jrfonseca@tungstengraphics.com>2008-02-23 14:14:54 +0900
commite8de5c70e3370e9112a5facc870075eea60c4c46 (patch)
tree02886c2ff477e3bcca66d4541a3e0777f5406aae /src/gallium/include/pipe/p_compiler.h
parentbed547cb8223659a7f0d15a91c2edb5f822ba855 (diff)
Bring in several forgotten MSVC fixes.
Diffstat (limited to 'src/gallium/include/pipe/p_compiler.h')
-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 ab527f2afe..91f3d2ac2d 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;