From: Bill Lash Date: Sat, 22 Jun 2019 20:59:11 +0000 (-0500) Subject: Add auto detection of MAC OS X X-Git-Url: https://scope-eye.net/git/?a=commitdiff_plain;h=321cda65cee378361160b2614e3368cdc403a369;p=liskon_frotz.git Add auto detection of MAC OS X --- diff --git a/Makefile b/Makefile index 8de6d46..436a1b7 100644 --- a/Makefile +++ b/Makefile @@ -8,8 +8,13 @@ WCC=wcc # Enable compiler warnings. This is an absolute minimum. CFLAGS += -Wall -std=c99 #-Wextra -# If compiling on Apple's MacOS, uncomment this: -# MACOS = yes +# Determine if we are compiling on MAC OS X +ifneq ($(OS),Windows_NT) + UNAME_S := $(shell uname -s) + ifeq ($(UNAME_S),Darwin) + MACOS = yes + endif +endif # strdup, strndup CFLAGS += -D_POSIX_C_SOURCE=200809L