From 469238676dd466a55b3808461e262f5645f888d1 Mon Sep 17 00:00:00 2001 From: Hans-Christoph Steiner Date: Tue, 22 Jan 2013 17:31:49 +0000 Subject: use HAVE_UNISTD_H to determine when to include unistd.h svn path=/trunk/externals/miXed/; revision=16960 --- Makefile.common | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'Makefile.common') diff --git a/Makefile.common b/Makefile.common index 3ceb6bd..2921ed4 100644 --- a/Makefile.common +++ b/Makefile.common @@ -48,9 +48,9 @@ LFLAGS = -Wl,--export-dynamic -shared # FIXME strict-aliasing OPT_CFLAGS = -O6 -funroll-loops -fomit-frame-pointer -fno-strict-aliasing -fPIC ifeq ($(MY_NAME),krzYszcz) -DEFINES = -DUNIX -DKRZYSZCZ +DEFINES = -DUNIX -DHAVE_UNISTD_H -DKRZYSZCZ else -DEFINES = -DUNIX +DEFINES = -DUNIX -DHAVE_UNISTD_H endif endif @@ -60,7 +60,7 @@ CC = gcc X_SUFFIX = dll # OPT_CFLAGS gets overridden in Pd-extended builds for optimization # flags, so stick -mms-bitfieds here so that it doesn't get overridden -DEFINES = -mms-bitfields -DNT -DMSW +DEFINES = -mms-bitfields OPT_CFLAGS = -funroll-loops LFLAGS = -shared -L$(PD_DIR) -L$(PD_DIR)/../bin/ -lpd endif @@ -68,7 +68,7 @@ endif ifeq ($(OS_NAME),Darwin) CC = gcc X_SUFFIX = pd_darwin -DEFINES = -DUNIX -DMACOSX +DEFINES = -DUNIX -DHAVE_UNISTD_H OPT_CFLAGS = -O2 -funroll-loops -fomit-frame-pointer # perhaps "-undefined suppress" would be a better choice, when we go dynamic # with our own common code? (not likely to happen soon...) -- cgit v1.2.1