aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Voss <mail@thomasvoss.com> 2024-01-27 23:34:38 +0100
committerThomas Voss <mail@thomasvoss.com> 2024-01-27 23:34:38 +0100
commit24c9518d8af34c297c4edfaa77d4fc3a0c725f19 (patch)
tree19981874fd9a5b409694e20453ae549c336ff981
parent408c4bfb37bbecfe5aadaa3bf2158eab34a3bfc4 (diff)
Fix some things
-rw-r--r--make.c16
1 files changed, 7 insertions, 9 deletions
diff --git a/make.c b/make.c
index f909caa..469cc98 100644
--- a/make.c
+++ b/make.c
@@ -1,3 +1,10 @@
+#if __has_include(<features.h>)
+# include <features.h>
+# ifdef __GLIBC__
+# define _POSIX_C_SOURCE 200809L
+# endif
+#endif
+
#include <errno.h>
#include <getopt.h>
#include <limits.h>
@@ -6,16 +13,7 @@
#include <string.h>
#include <unistd.h>
-#if defined(__has_include) && __has_include(<features.h>)
-# include <features.h>
-#endif
-
-#ifdef __GLIBC__
-# define _POSIX_C_SOURCE 200809L
-#endif
-
#include "cbs.h"
-#include "src/compat.h"
#define CC "cc"
#define WARNINGS \