[c-host] only include windows defines when building on windows

This commit is contained in:
Geoffrey McRae 2019-02-28 16:45:58 +11:00
parent c99f4e31c5
commit f9020659e6

View File

@ -4,8 +4,6 @@ CC=gcc.exe
CFLAGS = -std=gnu99 -Wall -Werror CFLAGS = -std=gnu99 -Wall -Werror
CFLAGS += -g -O0 CFLAGS += -g -O0
CFLAGS += -DCOBJMACROS
CFLAGS += -DINITGUID
CFLAGS += -I. CFLAGS += -I.
CFLAGS += -I../common CFLAGS += -I../common
@ -17,9 +15,8 @@ ifdef OS
OBJS += windebug.o OBJS += windebug.o
ifeq ($(USE_DXGI), 1) ifeq ($(USE_DXGI), 1)
CFLAGS += -DUSE_DXGI CFLAGS += -DUSE_DXGI -DCOBJMACROS -DINITGUID
LIBS += -ld3d11 LIBS += -ld3d11 -ldxgi
LIBS += -ldxgi
DLLS += dll/libd3d11.a DLLS += dll/libd3d11.a
OBJS += capture/dxgi.o OBJS += capture/dxgi.o
endif endif