From d029ba9ec0750f9ba3a6291745c986105b4ffbdb Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Tue, 15 Mar 2011 09:17:46 -0600 Subject: [PATCH] mesa: use 1UL for 64-bit unsigned constant for C++ This fixes C++ warnings where BITFIELD64_BIT() is used. --- src/mesa/main/mtypes.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/mesa/main/mtypes.h b/src/mesa/main/mtypes.h index 5409abaf1a4..95a7988d7e4 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 /** -- 2.30.2