Fix build with xcode 9.3 (dotnet/corefx#28768)
authorJan Vorlicek <janvorli@microsoft.com>
Tue, 3 Apr 2018 15:38:24 +0000 (17:38 +0200)
committerGitHub <noreply@github.com>
Tue, 3 Apr 2018 15:38:24 +0000 (17:38 +0200)
commitd811affffcc4da6810e412b4bf81781b50893445
treed3f94ec549b561dfc58f19d77675cea35bb6b78b
parent1bc7c8bedb868e8c2d9d71bcf75defdf1c0b5a7a
Fix build with xcode 9.3 (dotnet/corefx#28768)

The c_static_assert definition is causing build problems on OSX.
The compiler complains about the typedef we use to implement the
c_static_assert:
declaration shadows a typedef in the global scope [-Werror,-Wshadow]
This is due to multiple static asserts

To fix it, I have modified the c_static_assert to use _Static_assert
C feature that's available in clang.

Commit migrated from https://github.com/dotnet/corefx/commit/133d190320ecb2ff3f13a4e95c90b8e59bdd75e5
src/libraries/Native/Unix/Common/pal_compiler.h