projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
85caea2
)
mesa: use 1UL for 64-bit unsigned constant for C++
author
Brian Paul
<brianp@vmware.com>
Tue, 15 Mar 2011 15:17:46 +0000
(09:17 -0600)
committer
Brian 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
patch
|
blob
|
history
diff --git
a/src/mesa/main/mtypes.h
b/src/mesa/main/mtypes.h
index 5409abaf1a40c736fa8e1f144ee059dc499b1bbf..95a7988d7e450240c0a8ce5d3d2cab97ca4d8aae 100644
(file)
--- 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
/**