Fix SDL2 build on MacOS

This commit is contained in:
Eugene Kulabuhov 2024-03-17 00:23:08 +00:00
parent 6972a5b0d6
commit 4cb054f94f
3 changed files with 10 additions and 2 deletions

View File

@ -480,4 +480,4 @@ void input_end_frame(unsigned int cycles)
}
}
}
}
}

View File

@ -79,7 +79,7 @@
/* signed and unsigned int must be at least 32 bits wide */
#define sint signed int
#define uint unsigned int
typedef unsigned int uint;
#if M68K_USE_64_BIT

View File

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