mirror of
https://github.com/fluencelabs/musl
synced 2025-04-25 15:22:15 +00:00
fix _ALL_SOURCE logic to avoid possible redefinition of _GNU_SOURCE
this could be an error if _GNU_SOURCE was already defined differently by the application.
This commit is contained in:
parent
ab8f6a6e42
commit
f929493c49
@ -1,7 +1,7 @@
|
|||||||
#ifndef _FEATURES_H
|
#ifndef _FEATURES_H
|
||||||
#define _FEATURES_H
|
#define _FEATURES_H
|
||||||
|
|
||||||
#ifdef _ALL_SOURCE
|
#if defined(_ALL_SOURCE) && !defined(_GNU_SOURCE)
|
||||||
#define _GNU_SOURCE 1
|
#define _GNU_SOURCE 1
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user