Added compile-time error when C99 is not present

This commit is contained in:
XaviDCR92 2020-03-21 09:53:45 +01:00
parent 278517ee1e
commit f0bf3175ab
1 changed files with 4 additions and 0 deletions

View File

@ -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