From: Rich Felker Date: Wed, 10 Sep 2014 16:40:38 +0000 (-0400) Subject: fix _ALL_SOURCE logic to avoid possible redefinition of _GNU_SOURCE X-Git-Url: http://nsz.repo.hu/git/?a=commitdiff_plain;ds=sidebyside;h=f929493c49bbb304832b27e1e2b919aa19ddf470;p=musl 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. --- 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