diff options
author | Tavian Barnes <tavianator@tavianator.com> | 2024-08-28 10:53:10 -0400 |
---|---|---|
committer | Tavian Barnes <tavianator@tavianator.com> | 2024-08-28 17:33:20 -0400 |
commit | b3636fa8864913413455a050c5425447c9e98bc0 (patch) | |
tree | 4ade291bf5652e9e27535602b11edff5a78d08b8 /src/main.c | |
parent | d1febdd40faf2f66a901c42377a6b6efaad1449c (diff) | |
download | bfs-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.c | 4 |
1 files changed, 1 insertions, 3 deletions
@@ -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" |