diff options
author | Tej Chajed <tchajed+github@gmail.com> | 2013-01-04 21:46:13 -0600 |
---|---|---|
committer | Lars-Dominik Braun <lars@6xq.net> | 2013-01-09 10:42:17 +0100 |
commit | 4ebcb14597cc6a7fa55c0cf0cd42b4763cf75129 (patch) | |
tree | 5f85e90da1b1d5546cad0470dabd2501f4764d10 /Makefile | |
parent | ed26b4ad0ec296751300676ab1b5782e498dfdb5 (diff) | |
download | pianobar-windows-4ebcb14597cc6a7fa55c0cf0cd42b4763cf75129.tar.gz pianobar-windows-4ebcb14597cc6a7fa55c0cf0cd42b4763cf75129.tar.bz2 pianobar-windows-4ebcb14597cc6a7fa55c0cf0cd42b4763cf75129.zip |
Use gcc -std=c99 instead of c99 on OS X
Automatic checking in Makefile. Fixes #308 and #340.
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -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 |