blob: 8a8f4e31349efd520616b0e8093f8a8bb3a734ac [file] [log] [blame]
--- libdom-0.1.1/Makefile
+++ libdom-0.1.1/Makefile
@@ -15,15 +15,11 @@
WARNFLAGS := -Wall -W -Wundef -Wpointer-arith -Wcast-align \
-Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes \
-Wmissing-declarations -Wnested-externs
-# BeOS/Haiku standard library headers generate warnings
-ifneq ($(TARGET),beos)
- WARNFLAGS := $(WARNFLAGS) -Werror
-endif
# AmigaOS needs this to avoid warnings
ifeq ($(TARGET),amiga)
CFLAGS := -U__STRICT_ANSI__ $(CFLAGS)
endif
-CFLAGS := -D_BSD_SOURCE -I$(CURDIR)/include/ \
+CFLAGS := -D_DEFAULT_SOURCE -I$(CURDIR)/include/ \
-I$(CURDIR)/src -I$(CURDIR)/binding $(WARNFLAGS) $(CFLAGS)
# Some gcc2 versions choke on -std=c99, and it doesn't know about it anyway
ifneq ($(GCCVER),2)