Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
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 9, 2013
1 parent ed26b4a commit 4ebcb14
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion Makefile
Expand Up @@ -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
Expand Down

0 comments on commit 4ebcb14

Please sign in to comment.