Skip to content
Snippets Groups Projects
Commit cf931e1c authored by deuce's avatar deuce
Browse files

Define USE_SNPRINTF for Darwin (macOS) and FreeBSD.

Darwin because it's easier, and FreeBSD so I can reproduce problems it
causes on Darwin.
parent 254e7234
No related branches found
No related tags found
No related merge requests found
......@@ -83,6 +83,16 @@ ifeq ($(os),darwin)
XPDEV_CFLAGS += -DHAS_RANDOM_FUNC
endif
# macOS needs to use the standard snprintf()... use it on FreeBSD as well for testing.
ifeq ($(os),darwin)
XPDEV_CFLAGS += -DUSE_SNPRINTF
XPDEV-MT_CFLAGS+= -DUSE_SNPRINTF
endif
ifeq ($(os),freebsd)
XPDEV_CFLAGS += -DUSE_SNPRINTF
XPDEV-MT_CFLAGS+= -DUSE_SNPRINTF
endif
# Find SDL headers!
ifdef USE_SDL_AUDIO
ifdef SDL_CONFIG
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment