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:
committed by
waddlesplash
parent
5c1f231967
commit
90dca2bc8e
@@ -7,9 +7,10 @@
|
||||
|
||||
|
||||
#include_next <math.h>
|
||||
#include <features.h>
|
||||
|
||||
|
||||
#ifdef _GNU_SOURCE
|
||||
#ifdef _DEFAULT_SOURCE
|
||||
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
||||
@@ -9,7 +9,8 @@
|
||||
#include_next <pthread.h>
|
||||
#include <features.h>
|
||||
|
||||
#ifdef _GNU_SOURCE
|
||||
|
||||
#ifdef _DEFAULT_SOURCE
|
||||
|
||||
|
||||
#include <sched.h>
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
#include <sys/types.h>
|
||||
|
||||
|
||||
#ifdef _GNU_SOURCE
|
||||
#ifdef _DEFAULT_SOURCE
|
||||
|
||||
|
||||
#ifndef CPU_SETSIZE
|
||||
|
||||
@@ -7,9 +7,10 @@
|
||||
|
||||
|
||||
#include_next <spawn.h>
|
||||
#include <features.h>
|
||||
|
||||
|
||||
#ifdef _GNU_SOURCE
|
||||
#ifdef _DEFAULT_SOURCE
|
||||
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
||||
@@ -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_ */
|
||||
|
||||
@@ -7,9 +7,10 @@
|
||||
|
||||
|
||||
#include_next <string.h>
|
||||
#include <features.h>
|
||||
|
||||
|
||||
#ifdef _GNU_SOURCE
|
||||
#ifdef _DEFAULT_SOURCE
|
||||
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
||||
Reference in New Issue
Block a user