Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nanopb/nanopb.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/pb.h
diff options
context:
space:
mode:
authorFay <fay2003hiend@gmail.com>2019-05-20 06:30:32 +0300
committerGitHub <noreply@github.com>2019-05-20 06:30:32 +0300
commit309837c2b53b6c7472f232ae319a8ab94b1664cb (patch)
treea198ecdf5b5122fb20fdd3aba250e34029e10f1c /pb.h
parenta2db482712a575ab01c608ec129c8a07454be0ef (diff)
fix error when __STDC_VERSION__ is not defined
Diffstat (limited to 'pb.h')
-rw-r--r--pb.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/pb.h b/pb.h
index eda9fd1..db2be6c 100644
--- a/pb.h
+++ b/pb.h
@@ -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