From bfe0583a1264e2b1467942ec33e1fa773d450d9b Mon Sep 17 00:00:00 2001 From: Lars-Dominik Braun Date: Mon, 10 Aug 2015 11:20:29 +0200 Subject: Move feature test macros to config.h MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit I removed most of the *BSD-related stuff, because I can’t test these. If this breaks your build, send me a patch please. --- src/libpiano/piano.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'src/libpiano/piano.c') diff --git a/src/libpiano/piano.c b/src/libpiano/piano.c index b519f49..72502f7 100644 --- a/src/libpiano/piano.c +++ b/src/libpiano/piano.c @@ -21,10 +21,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ -#ifndef __FreeBSD__ -#define _BSD_SOURCE /* required by strdup() */ -#define _DARWIN_C_SOURCE /* strdup() on OS X */ -#endif +#include "../config.h" #include #include @@ -34,7 +31,6 @@ THE SOFTWARE. #include "piano_private.h" #include "piano.h" -#include "config.h" /* initialize piano handle * @param piano handle -- cgit v1.2.3