From f0bf3175abd5c6f869807236c97d6fc4f181e16d Mon Sep 17 00:00:00 2001 From: XaviDCR92 Date: Sat, 21 Mar 2020 09:53:45 +0100 Subject: Added compile-time error when C99 is not present --- include/dynstr.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'include') 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 +#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 -- cgit v1.2.3