diff options
author | Chris Robinson <[email protected]> | 2014-04-07 11:48:28 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2014-04-07 11:48:28 -0700 |
commit | c6821e5dd177a0d5e36047de8a107bc650ae8725 (patch) | |
tree | c9d4d88c6c834459c93c7c71eaffe773b3c016b1 /Alc/atomic.h | |
parent | f1a4b95b8cf483316025d95727b56da736546ccf (diff) |
Use C11's static_assert when available
Diffstat (limited to 'Alc/atomic.h')
-rw-r--r-- | Alc/atomic.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Alc/atomic.h b/Alc/atomic.h index 3bd5e6af..10f8e436 100644 --- a/Alc/atomic.h +++ b/Alc/atomic.h @@ -106,7 +106,7 @@ inline RefCount IncrementRef(volatile RefCount *ptr) inline RefCount DecrementRef(volatile RefCount *ptr) { return InterlockedDecrement(ptr); } -extern ALbyte LONG_size_does_not_match_int[(sizeof(LONG)==sizeof(int))?1:-1]; +static_assert(sizeof(LONG)==sizeof(int), "sizeof LONG does not match sizeof int"); inline int ExchangeInt(volatile int *ptr, int newval) { |