| Index: mojo/public/c/system/macros.h
|
| diff --git a/mojo/public/c/system/macros.h b/mojo/public/c/system/macros.h
|
| index 7c7aa2c3f34f169639b1186e82a273fa9a3526d2..b8dbb1d1cf56374262afe8303ac3c1636a1ba5fd 100644
|
| --- a/mojo/public/c/system/macros.h
|
| +++ b/mojo/public/c/system/macros.h
|
| @@ -24,13 +24,12 @@
|
| #endif
|
|
|
| // Assert things at compile time. (|msg| should be a valid identifier name.)
|
| -// This macro is currently C++-only, but we want to use it in the C core.h.
|
| // Use like:
|
| // MOJO_STATIC_ASSERT(sizeof(Foo) == 12, "Foo has invalid size");
|
| #if defined(__cplusplus)
|
| #define MOJO_STATIC_ASSERT(expr, msg) static_assert(expr, msg)
|
| #else
|
| -#define MOJO_STATIC_ASSERT(expr, msg)
|
| +#define MOJO_STATIC_ASSERT(expr, msg) _Static_assert(expr, msg)
|
| #endif
|
|
|
| // Like the C++11 |alignof| operator.
|
|
|