From f9020659e64f31f97cc67640b6f3b057ec591c6b Mon Sep 17 00:00:00 2001 From: Geoffrey McRae Date: Thu, 28 Feb 2019 16:45:58 +1100 Subject: [PATCH] [c-host] only include windows defines when building on windows --- c-host/Makefile | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/c-host/Makefile b/c-host/Makefile index cc6797e7..75d52b6d 100644 --- a/c-host/Makefile +++ b/c-host/Makefile @@ -4,8 +4,6 @@ CC=gcc.exe CFLAGS = -std=gnu99 -Wall -Werror CFLAGS += -g -O0 -CFLAGS += -DCOBJMACROS -CFLAGS += -DINITGUID CFLAGS += -I. CFLAGS += -I../common @@ -17,9 +15,8 @@ ifdef OS OBJS += windebug.o ifeq ($(USE_DXGI), 1) - CFLAGS += -DUSE_DXGI - LIBS += -ld3d11 - LIBS += -ldxgi + CFLAGS += -DUSE_DXGI -DCOBJMACROS -DINITGUID + LIBS += -ld3d11 -ldxgi DLLS += dll/libd3d11.a OBJS += capture/dxgi.o endif