aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Voss <mail@thomasvoss.com> 2024-01-11 23:01:24 +0100
committerThomas Voss <mail@thomasvoss.com> 2024-01-11 23:01:24 +0100
commit8e2c049a1f5874eca6bd388d57542c135d0614e1 (patch)
tree6e01cd026619960b76171e8af309216fb651b33f
parent7b9b7f595e3e707d7597e1c0da22b1f6cd95dc6c (diff)
Import assert.h before C23
In C23, static_assert has become a keyword instead of a macro.
-rw-r--r--grab.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/grab.c b/grab.c
index 384e47d..0137049 100644
--- a/grab.c
+++ b/grab.c
@@ -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"