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 5409abaf1a40c736fa8e1f144ee059dc499b1bbf..95a7988d7e450240c0a8ce5d3d2cab97ca4d8aae 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
 
 
 /**