diff --git a/Makefile b/Makefile index 5d0d1e0c..ec3ebd26 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,6 @@ SRCS = mongoose.c test/unit_test.c test/packed_fs.c HDRS = $(wildcard src/*.h) -DEFS ?= -DMG_MAX_HTTP_HEADERS=7 -DMG_ENABLE_LINES -DMG_ENABLE_PACKED_FS=1 +DEFS ?= -DMG_MAX_HTTP_HEADERS=7 -DMG_ENABLE_LINES -DMG_ENABLE_PACKED_FS=1 -DMG_ENABLE_SSI=1 C_WARN ?= -Wmissing-prototypes -Wstrict-prototypes WARN ?= -W -Wall -Werror -Wshadow -Wdouble-promotion -fno-common -Wconversion -Wundef $(C_WARN) OPTS ?= -O3 -g3 diff --git a/examples/http-server/Makefile b/examples/http-server/Makefile index 27fc706b..eefab512 100644 --- a/examples/http-server/Makefile +++ b/examples/http-server/Makefile @@ -1,7 +1,7 @@ PROG ?= example ROOT ?= $(realpath $(CURDIR)/../..) -DEFS ?= -DMG_ENABLE_LINES=1 -CFLAGS ?= -I../.. -W -Wall -DMG_ENABLE_IPV6=1 $(DEFS) $(EXTRA) +DEFS ?= -DMG_ENABLE_LINES=1 -DMG_ENABLE_IPV6=1 -DMG_ENABLE_SSI=1 +CFLAGS ?= -I../.. -W -Wall $(DEFS) $(EXTRA) VCFLAGS = /nologo /W3 /O2 /I../.. $(DEFS) $(EXTRA) /link /incremental:no /machine:IX86 VC98 = docker run -it --rm -e Tmp=. -v $(ROOT):$(ROOT) -w $(CURDIR) mdashnet/vc98 LIN = docker run -it --rm -v $(ROOT):$(ROOT) -w $(CURDIR) mdashnet/cc2 diff --git a/mongoose.h b/mongoose.h index a5585046..15ab0c4b 100644 --- a/mongoose.h +++ b/mongoose.h @@ -537,7 +537,7 @@ int sscanf(const char *, const char *, ...); #endif #ifndef MG_ENABLE_SSI -#define MG_ENABLE_SSI 1 +#define MG_ENABLE_SSI 0 #endif #ifndef MG_ENABLE_IPV6 diff --git a/src/config.h b/src/config.h index d239befa..49074dae 100644 --- a/src/config.h +++ b/src/config.h @@ -21,7 +21,7 @@ #endif #ifndef MG_ENABLE_SSI -#define MG_ENABLE_SSI 1 +#define MG_ENABLE_SSI 0 #endif #ifndef MG_ENABLE_IPV6