summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTej Chajed <tchajed+github@gmail.com>2013-01-04 21:46:13 -0600
committerLars-Dominik Braun <lars@6xq.net>2013-01-09 10:42:17 +0100
commit4ebcb14597cc6a7fa55c0cf0cd42b4763cf75129 (patch)
tree5f85e90da1b1d5546cad0470dabd2501f4764d10
parented26b4ad0ec296751300676ab1b5782e498dfdb5 (diff)
downloadpianobar-4ebcb14597cc6a7fa55c0cf0cd42b4763cf75129.tar.gz
pianobar-4ebcb14597cc6a7fa55c0cf0cd42b4763cf75129.tar.bz2
pianobar-4ebcb14597cc6a7fa55c0cf0cd42b4763cf75129.zip
Use gcc -std=c99 instead of c99 on OS X
Automatic checking in Makefile. Fixes #308 and #340.
-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