summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile7
1 files changed, 6 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index aaed094..d08e21e 100644
--- a/Makefile
+++ b/Makefile
@@ -12,7 +12,12 @@ ifeq (${CFLAGS},)
CFLAGS=-O2 -DNDEBUG
endif
ifeq (${CC},cc)
- CC=c99
+ OS := $(shell uname)
+ ifeq (${OS},Darwin)
+ CC=gcc -std=c99
+ else
+ CC=c99
+ endif
endif
PIANOBAR_DIR=src