From c6821e5dd177a0d5e36047de8a107bc650ae8725 Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Mon, 7 Apr 2014 11:48:28 -0700 Subject: Use C11's static_assert when available --- Alc/atomic.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Alc') 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) { -- cgit v1.2.3