mirror of
https://github.com/ekeeke/Genesis-Plus-GX.git
synced 2024-12-25 02:31:49 +01:00
Fix SDL2 build on MacOS (#544)
* Fix SDL2 build on MacOS * Fixing compilation error
This commit is contained in:
parent
6972a5b0d6
commit
25a90c634d
@ -41,6 +41,14 @@ ifneq ($(OS),Windows_NT)
|
||||
DEFINES += -DHAVE_ALLOCA_H
|
||||
endif
|
||||
|
||||
ifneq ($(findstring Darwin,$(shell uname -a)),)
|
||||
platform = osx
|
||||
endif
|
||||
|
||||
ifeq ($(platform), osx)
|
||||
CFLAGS += -Winvalid-utf8 -Wstrict-prototypes
|
||||
endif
|
||||
|
||||
SRCDIR = ../core
|
||||
INCLUDES = -I$(SRCDIR) -I$(SRCDIR)/z80 -I$(SRCDIR)/m68k -I$(SRCDIR)/sound -I$(SRCDIR)/input_hw -I$(SRCDIR)/cart_hw -I$(SRCDIR)/cart_hw/svp -I$(SRCDIR)/cd_hw -I$(SRCDIR)/ntsc -I$(SRCDIR)/tremor -I$(SRCDIR)/../sdl -I$(SRCDIR)/../sdl/sdl2
|
||||
LIBS = `sdl2-config --libs` -lz -lm
|
||||
|
@ -2,7 +2,7 @@
|
||||
#ifndef _CONFIG_H_
|
||||
#define _CONFIG_H_
|
||||
|
||||
#include "shared.h"
|
||||
#include "types.h"
|
||||
|
||||
/****************************************************************************
|
||||
* Config Option
|
||||
|
Loading…
Reference in New Issue
Block a user