diff options
author | Rich Felker <dalias@aerifal.cx> | 2014-09-10 12:40:38 -0400 |
---|---|---|
committer | Rich Felker <dalias@aerifal.cx> | 2014-09-10 12:40:38 -0400 |
commit | f929493c49bbb304832b27e1e2b919aa19ddf470 (patch) | |
tree | 64098fb95c78288894d55b9052ec654faa6a79b1 /include/features.h | |
parent | ab8f6a6e42ff893041f7545a23e6d6a0edde07fb (diff) | |
download | musl-f929493c49bbb304832b27e1e2b919aa19ddf470.tar.gz musl-f929493c49bbb304832b27e1e2b919aa19ddf470.tar.bz2 musl-f929493c49bbb304832b27e1e2b919aa19ddf470.tar.xz musl-f929493c49bbb304832b27e1e2b919aa19ddf470.zip |
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.
Diffstat (limited to 'include/features.h')
-rw-r--r-- | include/features.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/features.h b/include/features.h index 294c61dd..61ad2f5b 100644 --- a/include/features.h +++ b/include/features.h @@ -1,7 +1,7 @@ #ifndef _FEATURES_H #define _FEATURES_H -#ifdef _ALL_SOURCE +#if defined(_ALL_SOURCE) && !defined(_GNU_SOURCE) #define _GNU_SOURCE 1 #endif |