summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrian Paul <brianp@vmware.com>2011-03-15 09:17:46 -0600
committerBrian Paul <brianp@vmware.com>2011-03-15 18:21:35 -0600
commitd029ba9ec0750f9ba3a6291745c986105b4ffbdb (patch)
treee7d9397d0e682f4055a950e36a3a51f1a6072c93
parent85caea29c18fad89050ac366c558afef568dcb3f (diff)
mesa: use 1UL for 64-bit unsigned constant for C++
This fixes C++ warnings where BITFIELD64_BIT() is used.
-rw-r--r--src/mesa/main/mtypes.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/mesa/main/mtypes.h b/src/mesa/main/mtypes.h
index 5409abaf1a..95a7988d7e 100644
--- a/src/mesa/main/mtypes.h
+++ b/src/mesa/main/mtypes.h
@@ -85,7 +85,11 @@
typedef GLuint64 GLbitfield64;
/** Set a single bit */
+#ifdef __cplusplus
+#define BITFIELD64_BIT(b) (1UL << (b))
+#else
#define BITFIELD64_BIT(b) (1ULL << (b))
+#endif
/**