headers: Change most remaining include guards to _DEFAULT_SOURCE.

We automatically enable _DEFAULT_SOURCE if _GNU_SOURCE is defined.
Rather than having even more optional methods undefined unless
_GNU_SOURCE manually is, just change all remaining guarts to
use _DEFAULT_SOURCE instead.

Fixes #19095.

Change-Id: I5c7baf40b7fb37913e24279589fc1ae706448a45
Reviewed-on: https://review.haiku-os.org/c/haiku/+/8330
Reviewed-by: Adrien Destugues <[email protected]>
Reviewed-by: waddlesplash <[email protected]>
Tested-by: Commit checker robot <[email protected]>
This commit is contained in:
Augustin Cavalier
2024-09-19 16:43:31 +00:00
committed by waddlesplash
parent 5c1f231967
commit 90dca2bc8e
16 changed files with 28 additions and 21 deletions
+2 -1
View File
@@ -7,9 +7,10 @@
#include_next <math.h>
#include <features.h>
#ifdef _GNU_SOURCE
#ifdef _DEFAULT_SOURCE
#ifdef __cplusplus
+2 -1
View File
@@ -9,7 +9,8 @@
#include_next <pthread.h>
#include <features.h>
#ifdef _GNU_SOURCE
#ifdef _DEFAULT_SOURCE
#include <sched.h>
+1 -1
View File
@@ -13,7 +13,7 @@
#include <sys/types.h>
#ifdef _GNU_SOURCE
#ifdef _DEFAULT_SOURCE
#ifndef CPU_SETSIZE
+2 -1
View File
@@ -7,9 +7,10 @@
#include_next <spawn.h>
#include <features.h>
#ifdef _GNU_SOURCE
#ifdef _DEFAULT_SOURCE
#ifdef __cplusplus
+3 -2
View File
@@ -11,9 +11,10 @@
#include_next <stdlib.h>
#include <features.h>
#ifdef _GNU_SOURCE
#ifdef _DEFAULT_SOURCE
#ifdef __cplusplus
@@ -30,7 +31,7 @@ extern void qsort_r(void* base, size_t numElements, size_t sizeOfElement,
#endif
#endif /* _GNU_SOURCE */
#endif /* _DEFAULT_SOURCE */
#endif /* _GNU_STDLIB_H_ */
+2 -1
View File
@@ -7,9 +7,10 @@
#include_next <string.h>
#include <features.h>
#ifdef _GNU_SOURCE
#ifdef _DEFAULT_SOURCE
#ifdef __cplusplus