From: Brian Paul Date: Tue, 15 Mar 2011 15:17:46 +0000 (-0600) Subject: mesa: use 1UL for 64-bit unsigned constant for C++ X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=d029ba9ec0750f9ba3a6291745c986105b4ffbdb;p=mesa.git mesa: use 1UL for 64-bit unsigned constant for C++ This fixes C++ warnings where BITFIELD64_BIT() is used. --- 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 /**