Use typedef instead of using in libspirv.h.
authorLei Zhang <antiagainst@google.com>
Wed, 21 Oct 2015 14:22:05 +0000 (10:22 -0400)
committerDavid 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

index 75008ea..f52bb4f 100644 (file)
@@ -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