Permalink
Browse files

Use gcc -std=c99 instead of c99 on OS X

Automatic checking in Makefile. Fixes #308 and #340.
  • Loading branch information...
tchajed authored and PromyLOPh committed Jan 5, 2013
1 parent ed26b4a commit 4ebcb14597cc6a7fa55c0cf0cd42b4763cf75129
Showing with 6 additions and 1 deletion.
  1. +6 −1 Makefile
View
@@ -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

0 comments on commit 4ebcb14

Please sign in to comment.