diff options
author | Fay <fay2003hiend@gmail.com> | 2019-05-20 06:30:32 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-05-20 06:30:32 +0300 |
commit | 309837c2b53b6c7472f232ae319a8ab94b1664cb (patch) | |
tree | a198ecdf5b5122fb20fdd3aba250e34029e10f1c /pb.h | |
parent | a2db482712a575ab01c608ec129c8a07454be0ef (diff) |
fix error when __STDC_VERSION__ is not defined
Diffstat (limited to 'pb.h')
-rw-r--r-- | pb.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -125,7 +125,7 @@ extern "C" { */ #ifndef PB_NO_STATIC_ASSERT # ifndef PB_STATIC_ASSERT -# if __STDC_VERSION__ >= 201112L +# if defined(__STDC_VERSION__) && __STDC_VERSION__ >= 201112L /* C11 standard _Static_assert mechanism */ # define PB_STATIC_ASSERT(COND,MSG) _Static_assert(COND,#MSG); # else |