diff options
| author | XaviDCR92 <xavi.dcr@tutanota.com> | 2020-03-21 09:53:45 +0100 |
|---|---|---|
| committer | XaviDCR92 <xavi.dcr@tutanota.com> | 2020-03-21 09:53:45 +0100 |
| commit | f0bf3175abd5c6f869807236c97d6fc4f181e16d (patch) | |
| tree | 5469c1385ec47b49b6c7677eacf82126f2a9237d /include | |
| parent | 278517ee1e1f78d0723b99f0fbf946f9403af563 (diff) | |
Added compile-time error when C99 is not present
Diffstat (limited to 'include')
| -rw-r--r-- | include/dynstr.h | 4 |
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 |
