aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorXaviDCR92 <xavi.dcr@tutanota.com>2020-03-21 09:53:45 +0100
committerXaviDCR92 <xavi.dcr@tutanota.com>2020-03-21 09:53:45 +0100
commitf0bf3175abd5c6f869807236c97d6fc4f181e16d (patch)
tree5469c1385ec47b49b6c7677eacf82126f2a9237d /include
parent278517ee1e1f78d0723b99f0fbf946f9403af563 (diff)
Added compile-time error when C99 is not present
Diffstat (limited to 'include')
-rw-r--r--include/dynstr.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/dynstr.h b/include/dynstr.h
index 7f5b82e..c50c515 100644
--- a/include/dynstr.h
+++ b/include/dynstr.h
@@ -19,6 +19,10 @@
#include <stddef.h>
+#if __STDC_VERSION < 199901L
+#error C99 support is mandatory for dynstr
+#endif /* __STDC_VERSION < 199901L */
+
#ifdef __GNUC__
/* Since dynstr_append() might fail (as it is based on dynamic memory