summaryrefslogtreecommitdiffstats
path: root/src/main.c
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@tavianator.com>2024-08-28 10:53:10 -0400
committerTavian Barnes <tavianator@tavianator.com>2024-08-28 17:33:20 -0400
commitb3636fa8864913413455a050c5425447c9e98bc0 (patch)
tree4ade291bf5652e9e27535602b11edff5a78d08b8 /src/main.c
parentd1febdd40faf2f66a901c42377a6b6efaad1449c (diff)
downloadbfs-b3636fa8864913413455a050c5425447c9e98bc0.tar.xz
build: Move feature test macros to prelude.h
This replaces the explicit CPPFLAGS list in flags.mk with just `-include src/prelude.h`, shortening our compiler command lines and allowing them to be easily documented.
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/main.c b/src/main.c
index 9f78522..da07508 100644
--- a/src/main.c
+++ b/src/main.c
@@ -20,6 +20,7 @@
* - bftw.[ch] (an extended version of nftw(3))
*
* - Utilities:
+ * - prelude.h (feature test macros; automatically included)
* - alloc.[ch] (memory allocation)
* - atomic.h (atomic operations)
* - bar.[ch] (a terminal status bar)
@@ -27,7 +28,6 @@
* - bfs.h (configuration and fundamental utilities)
* - bfstd.[ch] (standard library wrappers/polyfills)
* - color.[ch] (for pretty terminal colors)
- * - prelude.h (configuration and feature/platform detection)
* - diag.[ch] (formats diagnostic messages)
* - dir.[ch] (a directory API facade)
* - dstring.[ch] (a dynamic string library)
@@ -48,8 +48,6 @@
* - xtime.[ch] (date/time handling utilities)
*/
-#include "prelude.h"
-
#include "bfstd.h"
#include "ctx.h"
#include "diag.h"