From 77c08837f4bc9eb5e11ab51d9b5c46789fa62a6b Mon Sep 17 00:00:00 2001 From: wolfreak99 Date: Fri, 17 Feb 2017 23:44:50 +0100 Subject: [PATCH] Make MSVC use C11's `static_assert` --- src/openrct2/common.h | 9 --------- 1 file changed, 9 deletions(-) diff --git a/src/openrct2/common.h b/src/openrct2/common.h index e33c5f5df8..1a1d89dafe 100644 --- a/src/openrct2/common.h +++ b/src/openrct2/common.h @@ -220,16 +220,7 @@ typedef uint16 rct_string_id; #define RESTRICT #endif -#ifdef __cplusplus #define assert_struct_size(x, y) static_assert(sizeof(x) == (y), "Improper struct size") -#else - // Visual Studio does not know _Static_assert - #if !defined(_MSC_VER) - #define assert_struct_size(x, y) _Static_assert(sizeof(x) == (y), "Improper struct size") - #else - #define assert_struct_size(x, y) - #endif // !defined(_MSC_VER) -#endif #ifdef PLATFORM_X86 #ifndef FASTCALL