summaryrefslogtreecommitdiffstats
path: root/src/prelude.h
Commit message (Collapse)AuthorAgeFilesLines
* build: Move feature test macros to prelude.hTavian Barnes2024-08-281-2/+56
| | | | | | 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.
* prelude: Split bfs-specific utilities into new bfs.h headerTavian Barnes2024-08-281-194/+3
|
* prelude: Rely more on __has_include()Tavian Barnes2024-08-281-83/+14
| | | | | Rather than a bunch of manual fallback macros, just provide a fallback definition that returns false.
* build: Move tsan/target_clones conflict to the preludeTavian Barnes2024-08-281-1/+3
|
* prelude: Define __SANITIZE_*__Tavian Barnes2024-08-281-0/+12
|
* prelude: Define thread_localTavian Barnes2024-08-281-3/+17
|
* prelude: Stub out __has_builtin() if necessaryTavian Barnes2024-08-231-0/+4
| | | | Fixes: c964524 ("atomic: Add a spin_loop() hint")
* prelude: s/fallthru/_fallthrough/ for consistency with other attributesTavian Barnes2024-08-091-2/+2
|
* prelude: Simplify attributesTavian Barnes2024-07-281-100/+32
|
* build: Rename CONFIG to CONFFLAGSTavian Barnes2024-06-181-1/+1
|
* build: Include CC in bfs --version outputTavian Barnes2024-06-131-0/+1
|
* Embed more configuration info in bfs --versionTavian Barnes2024-06-081-0/+6
|
* list: New SLIST_SPLICE() macroTavian Barnes2024-05-311-1/+1
|
* bit: Use <stdbit.h> if it exists, even without -std=c23Tavian Barnes2024-05-291-0/+4
| | | | glibc added an implementation in 2.39.
* prelude: Remove max_align_t polyfillTavian Barnes2024-05-201-15/+0
| | | | | | This has been fixed in Cosmopolitan. Link: https://github.com/jart/cosmopolitan/issues/944
* prelude: Make sure to grab __GLIBC__Tavian Barnes2024-05-201-1/+2
|
* prelude: Kill #include <sys/param.h>Tavian Barnes2024-05-071-7/+0
| | | | We don't check for `BSD` anymore.
* prelude: Remove unused __GLIBC_PREREQ() polyfillTavian Barnes2024-05-071-4/+0
|
* prelude: Kill unused __NetBSD_Prereq__() polyfillTavian Barnes2024-05-071-4/+0
|
* printf: Check dynamic format strings more carefullyTavian Barnes2024-04-241-0/+9
|
* config: Check for acl_get_file()Tavian Barnes2024-04-221-7/+0
|
* fsade: Simplify BFS_CAN_CHECK_CAPABILITIESTavian Barnes2024-04-221-7/+0
|
* config: Check for extattr_{get,list}_{file,link}()Tavian Barnes2024-04-221-1/+1
| | | | This lets us implement -xattr on DragonFly BSD.
* config: Check for max_align_tTavian Barnes2024-04-191-4/+15
|
* config: Check for program_invocation_short_nameTavian Barnes2024-04-191-0/+2
| | | | | | This lets us pick it up on musl too, since there's no __MUSL__ macro. Link: https://wiki.musl-libc.org/faq#Q:-Why-is-there-no-%3Ccode%3E__MUSL__%3C/code%3E-macro?
* Rename config.h to prelude.hTavian Barnes2024-04-191-0/+377