From 01c410ab325709a2e9e222cc53cdc6da04643e2f Mon Sep 17 00:00:00 2001 From: Mark Pizzolato Date: Sun, 29 Nov 2015 04:46:54 -0800 Subject: [PATCH] makefile: Generalize the gcc -std tests to work for both MinGW and unix environments. Fix #250 --- makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/makefile b/makefile index 3b238418..b6bfd70a 100644 --- a/makefile +++ b/makefile @@ -902,10 +902,10 @@ ifeq (HP-UX,$(OSTYPE)) CC_STD = -std=gnu99 else ifeq (,$(SUNC_VERSION)) - ifneq (,$(findstring error,$(shell $(GCC) -std=c11 -version /dev/null 2>&1))) + ifeq (,$(findstring error,$(shell $(GCC) -std=c11 --version 2>&1))) CC_STD = -std=c11 else - ifneq (,$(findstring error,$(shell $(GCC) -std=gnu99 -version /dev/null 2>&1))) + ifeq (,$(findstring error,$(shell $(GCC) -std=gnu99 --version 2>&1))) CC_STD = -std=gnu99 else CC_STD = -std=c99 -fms-extensions