From 4ebcb14597cc6a7fa55c0cf0cd42b4763cf75129 Mon Sep 17 00:00:00 2001 From: Tej Chajed Date: Fri, 4 Jan 2013 21:46:13 -0600 Subject: Use gcc -std=c99 instead of c99 on OS X Automatic checking in Makefile. Fixes #308 and #340. --- Makefile | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'Makefile') 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 -- cgit v1.2.3