blob: bc843d143223c13de01908b21731b5cef49bebcb [file] [log] [blame]
--- libdom-0.1.2/Makefile
+++ libdom-0.1.2/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 ($(HOST),i586-pc-haiku)
- WARNFLAGS := $(WARNFLAGS) -Werror
-endif
# AmigaOS needs this to avoid warnings
ifeq ($(findstring amigaos,$(HOST)),amigaos)
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)