diff options
Diffstat (limited to 'gpu')
-rw-r--r-- | gpu/command_buffer/common/types.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gpu/command_buffer/common/types.h b/gpu/command_buffer/common/types.h index 74e5103..718ecca 100644 --- a/gpu/command_buffer/common/types.h +++ b/gpu/command_buffer/common/types.h @@ -28,7 +28,7 @@ typedef int int32; // The NSPR system headers define 64-bit as |long| when possible. In order to // not have typedef mismatches, we do the same on LP64. -#if __LP64__ +#if defined(__LP64__) && !defined(__APPLE__) && !defined(__OpenBSD__) typedef long int64; #else typedef long long int64; @@ -53,7 +53,7 @@ typedef unsigned int uint32; #endif // See the comment above about NSPR and 64-bit. -#if __LP64__ +#if defined(__LP64__) && !defined(__APPLE__) && !defined(__OpenBSD__) typedef unsigned long uint64; #else typedef unsigned long long uint64; @@ -95,7 +95,7 @@ char (&ArraySizeHelper(T (&array)[N]))[N]; // That gcc wants both of these prototypes seems mysterious. VC, for // its part, can't decide which to use (another mystery). Matching of // template overloads: the final frontier. -#ifndef _MSC_VER +#if !defined(_MSC_VER) template <typename T, size_t N> char (&ArraySizeHelper(const T (&array)[N]))[N]; #endif |