Fix a couple more MinGW/MSVC warnings.

This commit is contained in:
Mike Gelfand
2015-03-19 19:13:23 +00:00
parent 45983e66e6
commit cefc477918
4 changed files with 5 additions and 3 deletions

View File

@@ -87,7 +87,7 @@ extern "C" {
#elif __has_feature (c_static_assert) || __has_extension (c_static_assert)
#define TR_STATIC_ASSERT _Static_assert
#else
#define TR_STATIC_ASSERT(x, msg) { const char static_check[((x) ? 1 : -1)] UNUSED; }
#define TR_STATIC_ASSERT(x, msg) { typedef char __tr_static_check__[(x) ? 1 : -1] UNUSED; }
#endif