From b3636fa8864913413455a050c5425447c9e98bc0 Mon Sep 17 00:00:00 2001 From: Tavian Barnes Date: Wed, 28 Aug 2024 10:53:10 -0400 Subject: 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. --- src/main.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/main.c') 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" -- cgit v1.2.3