mesa: use 1UL for 64-bit unsigned constant for C++
authorBrian Paul <brianp@vmware.com>
Tue, 15 Mar 2011 15:17:46 +0000 (09:17 -0600)
committerBrian Paul <brianp@vmware.com>
Wed, 16 Mar 2011 00:21:35 +0000 (18:21 -0600)
This fixes C++ warnings where BITFIELD64_BIT() is used.

src/mesa/main/mtypes.h

index 5409aba..95a7988 100644 (file)
 typedef GLuint64 GLbitfield64;
 
 /** Set a single bit */
+#ifdef __cplusplus
+#define BITFIELD64_BIT(b)      (1UL << (b))
+#else
 #define BITFIELD64_BIT(b)      (1ULL << (b))
+#endif
 
 
 /**