diff options
| author | Thomas Voss <mail@thomasvoss.com> | 2024-01-11 23:01:24 +0100 |
|---|---|---|
| committer | Thomas Voss <mail@thomasvoss.com> | 2024-01-11 23:01:24 +0100 |
| commit | 8e2c049a1f5874eca6bd388d57542c135d0614e1 (patch) | |
| tree | 6e01cd026619960b76171e8af309216fb651b33f | |
| parent | 7b9b7f595e3e707d7597e1c0da22b1f6cd95dc6c (diff) | |
Import assert.h before C23
In C23, static_assert has become a keyword instead of a macro.
| -rw-r--r-- | grab.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -1,17 +1,17 @@ -#include <assert.h> #include <err.h> #include <getopt.h> #include <libgen.h> #include <limits.h> #include <locale.h> #include <regex.h> -#if !GRAB_IS_C23 -# include <stdbool.h> -#endif #include <stdio.h> #include <stdlib.h> #include <string.h> #include <unistd.h> +#if !GRAB_IS_C23 +# include <assert.h> +# include <stdbool.h> +#endif #include "da.h" |