aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--cbs.h2
-rw-r--r--make.c10
2 files changed, 3 insertions, 9 deletions
diff --git a/cbs.h b/cbs.h
index bcf82df..0c4fdd7 100644
--- a/cbs.h
+++ b/cbs.h
@@ -722,7 +722,7 @@ _rebuild(char *src)
return;
}
- cmdadd(&cmd, "cc");
+ cmdadd(&cmd, "cc", "-std=c2x");
#ifdef CBS_PTHREAD
cmdadd(&cmd, "-lpthread");
#endif
diff --git a/make.c b/make.c
index 469cc98..2af70e1 100644
--- a/make.c
+++ b/make.c
@@ -1,10 +1,4 @@
-#if __has_include(<features.h>)
-# include <features.h>
-# ifdef __GLIBC__
-# define _POSIX_C_SOURCE 200809L
-# endif
-#endif
-
+#define _GNU_SOURCE
#include <errno.h>
#include <getopt.h>
#include <limits.h>
@@ -112,7 +106,7 @@ main(int argc, char **argv)
CMDPRC(c);
}
- if (foutdated("./grab", "src/grab.c", "src/compat.h", "src/da.h",
+ if (foutdated("./grab", "src/grab.c", "src/da.h",
"vendor/librune/librune.a"))
{
env_or_default(&sv, "CC", CC);