Disable SSI by default

This commit is contained in:
Sergey Lyubka 2022-05-08 21:54:15 +01:00
parent bc16854ccb
commit 5271626947
4 changed files with 5 additions and 5 deletions

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -21,7 +21,7 @@
#endif
#ifndef MG_ENABLE_SSI
#define MG_ENABLE_SSI 1
#define MG_ENABLE_SSI 0
#endif
#ifndef MG_ENABLE_IPV6