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/ui.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'src/ui.c') diff --git a/src/ui.c b/src/ui.c index 91eb005..779dbf8 100644 --- a/src/ui.c +++ b/src/ui.c @@ -23,11 +23,7 @@ THE SOFTWARE. /* everything that interacts with the user */ -#ifndef __FreeBSD__ -#define _POSIX_C_SOURCE 1 /* fileno() */ -#define _BSD_SOURCE /* strdup() */ -#define _DARWIN_C_SOURCE /* strdup() on OS X */ -#endif +#include "config.h" #include #include -- cgit v1.2.3