projects
/
platform
/
upstream
/
SPIRV-Tools.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
913e31f
)
Use typedef instead of using in libspirv.h.
author
Lei Zhang
<antiagainst@google.com>
Wed, 21 Oct 2015 14:22:05 +0000
(10:22 -0400)
committer
David Neto
<dneto@google.com>
Mon, 2 Nov 2015 18:51:45 +0000
(13:51 -0500)
The header file should be compatible with pre-C++11 code.
include/libspirv/libspirv.h
patch
|
blob
|
history
diff --git
a/include/libspirv/libspirv.h
b/include/libspirv/libspirv.h
index
75008ea
..
f52bb4f
100644
(file)
--- a/
include/libspirv/libspirv.h
+++ b/
include/libspirv/libspirv.h
@@
-97,7
+97,7
@@
extern "C" {
// A bit mask representing a set of capabilities.
// Currently there are 54 distinct capabilities, so 64 bits
// should be enough.
-
using spv_capability_mask_t = uint64
_t;
+
typedef uint64_t spv_capability_mask
_t;
// Transforms spv::Capability into a mask for use in bitfields. Should really
// be a constexpr inline function, but some important versions of MSVC don't