diff options
author | Hans-Christoph Steiner <eighthave@users.sourceforge.net> | 2013-01-22 17:31:49 +0000 |
---|---|---|
committer | Hans-Christoph Steiner <eighthave@users.sourceforge.net> | 2013-01-22 17:31:49 +0000 |
commit | 469238676dd466a55b3808461e262f5645f888d1 (patch) | |
tree | 97c9e3f508baf64ff204fb99cd12a625231c259c /Makefile.common | |
parent | 886e1012372ea48f4946f40ad9dee577389b76f2 (diff) |
use HAVE_UNISTD_H to determine when to include unistd.h
svn path=/trunk/externals/miXed/; revision=16960
Diffstat (limited to 'Makefile.common')
-rw-r--r-- | Makefile.common | 8 |
1 files changed, 4 insertions, 4 deletions
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...) |