X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;ds=sidebyside;f=include%2Fassert.h;h=1ee02a4a5fb095d0cffacba1cc05a36a94633138;hb=d1b29c2a54588401494c1a3ac7103c1e91c61fa1;hp=ab745db18022aeda15f1d04ba6d4ef93c82b4f9d;hpb=2c1f8fd5da3306fd7c8a2267467e44eb61f12dd4;p=musl diff --git a/include/assert.h b/include/assert.h index ab745db1..1ee02a4a 100644 --- a/include/assert.h +++ b/include/assert.h @@ -8,6 +8,10 @@ #define assert(x) ((void)((x) || (__assert_fail(#x, __FILE__, __LINE__, __func__),0))) #endif +#ifndef __cplusplus +#define static_assert _Static_assert +#endif + #ifdef __cplusplus extern "C" { #endif