summaryrefslogtreecommitdiff
path: root/external/bsd/libc++
diff options
context:
space:
mode:
authorjoerg <joerg@NetBSD.org>2014-07-25 16:25:24 +0000
committerjoerg <joerg@NetBSD.org>2014-07-25 16:25:24 +0000
commitd395bfefc902cbdfb2db03654e4881732af9d92a (patch)
tree5641865eafefafe5a3ff6c982d1b6becd236c007 /external/bsd/libc++
parent93cc1540087debc9fba84e8894a291f500d14487 (diff)
Define guard_lock_t on 32bit Big Endian platforms too.
Diffstat (limited to 'external/bsd/libc++')
-rw-r--r--external/bsd/libc++/dist/libcxxrt/src/guard.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/external/bsd/libc++/dist/libcxxrt/src/guard.cc b/external/bsd/libc++/dist/libcxxrt/src/guard.cc
index ecfe2434376..34d294cf743 100644
--- a/external/bsd/libc++/dist/libcxxrt/src/guard.cc
+++ b/external/bsd/libc++/dist/libcxxrt/src/guard.cc
@@ -88,12 +88,12 @@ static const guard_t INITIALISED = static_cast<guard_t>(1) << 56;
#define LOCK_PART(guard) (guard)
#define INIT_PART(guard) (guard)
#else
+typedef uint32_t guard_lock_t;
# if defined(__LITTLE_ENDIAN__)
typedef struct {
uint32_t init_half;
uint32_t lock_half;
} guard_t;
-typedef uint32_t guard_lock_t;
static const uint32_t LOCKED = static_cast<guard_lock_t>(1) << 31;
static const uint32_t INITIALISED = 1;
# else