From 2b01e38ca2448364b6470e471ebfedf5793638af Mon Sep 17 00:00:00 2001 From: Xavier Del Campo Romero Date: Fri, 12 Jun 2020 10:27:12 +0200 Subject: Various minor changes - Removed trailing ';' from convenience macros. - Convenience macros did not really need the ## __VA_ARGS__ extension. Simply grouping all parameters into '...', while decreasing readability, solves the portability issue. - Added C99 check to dynstr.c. --- dynstr.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'dynstr.c') diff --git a/dynstr.c b/dynstr.c index f816155..847b75f 100644 --- a/dynstr.c +++ b/dynstr.c @@ -21,6 +21,10 @@ #include #include +#if __STDC_VERSION__ < 199901L +#error C99 support is mandatory for dynstr +#endif /* __STDC_VERSION < 199901L */ + void dynstr_init(struct dynstr *const d) { memset(d, 0, sizeof *d); -- cgit v1.2.3