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/main.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'src/main.c') diff --git a/src/main.c b/src/main.c index 59230e0..b113f4e 100644 --- a/src/main.c +++ b/src/main.c @@ -21,11 +21,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ -#ifndef __FreeBSD__ -#define _POSIX_C_SOURCE 1 /* fileno() */ -#define _BSD_SOURCE /* strdup() */ -#define _DARWIN_C_SOURCE /* strdup() on OS X */ -#endif +#include "config.h" /* system includes */ #include @@ -56,7 +52,6 @@ THE SOFTWARE. #include "main.h" #include "terminal.h" -#include "config.h" #include "ui.h" #include "ui_dispatch.h" #include "ui_readline.h" -- cgit v1.2.3