aboutsummaryrefslogtreecommitdiffhomepage
path: root/libmpdvdkit2/Makefile
diff options
context:
space:
mode:
authorGravatar diego <diego@b3059339-0415-0410-9bf9-f77b7e298cf2>2005-10-09 10:18:24 +0000
committerGravatar diego <diego@b3059339-0415-0410-9bf9-f77b7e298cf2>2005-10-09 10:18:24 +0000
commitdcb28f1914bef05f70d1bcadfe98e0c63d6ae205 (patch)
treeba01119df8122422b769de903e9ba89bdbecc6ce /libmpdvdkit2/Makefile
parent388335c9b4fda02da07f298c367b49bd4c3ff29d (diff)
Replace unconditional #defines by build system trickery.
This reduces our local diff considerably. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@16715 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libmpdvdkit2/Makefile')
-rw-r--r--libmpdvdkit2/Makefile7
1 files changed, 6 insertions, 1 deletions
diff --git a/libmpdvdkit2/Makefile b/libmpdvdkit2/Makefile
index 66918b36ef..ec5435e7c6 100644
--- a/libmpdvdkit2/Makefile
+++ b/libmpdvdkit2/Makefile
@@ -36,7 +36,12 @@ endif
# -funroll-loops removed, triggered gcc 3.0.4 (3.x?) bug
CFLAGS= -I. $(OPTFLAGS) $(EXTRA_INC)\
-DSYS_LINUX -D__USE_UNIX98 -D_REENTRANT -D_GNU_SOURCE \
- -DHAVE_DVDCSS_DVDCSS_H -DSTDC_HEADERS
+ -DHAVE_DVDCSS_DVDCSS_H -DSTDC_HEADERS -DHAVE_LIMITS_H \
+ -DHAVE_ERRNO_H -DHAVE_INTTYPES_H -DHAVE_UNISTD_H \
+
+ifeq ($(TARGET_OS),CYGWIN)
+CFLAGS+=-DSYS_CYGWIN
+endif
.c.o:
$(CC) $(CFLAGS) -c -o $@ $<