Fix Mac compile

This commit is contained in:
MysterD 2022-03-12 22:38:13 -08:00
parent e990157986
commit 4b41c3fd39
2 changed files with 3 additions and 1 deletions

View file

@ -609,7 +609,7 @@ SDL1_USED := 0
SDL2_USED := 0
# suppress warnings
BACKEND_CFLAGS += -Wno-format-truncation -Wno-format-security -Wno-trigraphs
BACKEND_CFLAGS += -Wno-format-security -Wno-trigraphs
BACKEND_CFLAGS += $(EXTRA_CFLAGS)
# for now, it's either SDL+GL or DXGI+DirectX, so choose based on WAPI
@ -627,6 +627,7 @@ else ifeq ($(findstring SDL,$(WINDOW_API)),SDL)
BACKEND_LDFLAGS += -lGLESv2
else ifeq ($(OSX_BUILD),1)
BACKEND_LDFLAGS += -framework OpenGL `pkg-config --libs glew`
EXTRA_CPP_FLAGS += -stdlib=libc++ -std=c++0x
else
BACKEND_LDFLAGS += -lGL
endif

View file

@ -11,6 +11,7 @@ struct LogFile {
bool firstOpen;
FILE* file;
};
#pragma pack()
enum LogFileType {
LFT_HANG,