summaryrefslogtreecommitdiffstats
path: root/cpukit/include/rtems/score/basedefs.h
diff options
context:
space:
mode:
Diffstat (limited to 'cpukit/include/rtems/score/basedefs.h')
-rw-r--r--cpukit/include/rtems/score/basedefs.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/cpukit/include/rtems/score/basedefs.h b/cpukit/include/rtems/score/basedefs.h
index a934507d80..5a7e4e4f31 100644
--- a/cpukit/include/rtems/score/basedefs.h
+++ b/cpukit/include/rtems/score/basedefs.h
@@ -430,7 +430,11 @@
* doesn't allow flexible array members. Use the GNU extension which is also
* supported by other compilers.
*/
-#define RTEMS_ZERO_LENGTH_ARRAY 0
+#if __STDC_VERSION__ >= 199409L
+ #define RTEMS_ZERO_LENGTH_ARRAY
+#else
+ #define RTEMS_ZERO_LENGTH_ARRAY 0
+#endif
/**
* @brief Returns a pointer to the container of a specified member pointer.