From 31444111839f0720d6173a71f66fa3a988bcf9fb Mon Sep 17 00:00:00 2001 From: Alon Bar-Lev Date: Wed, 28 Mar 2012 20:43:15 +0200 Subject: Enable pedantic in windows compilation Apparently -ansi undef WIN32 macro. Signed-off-by: Alon Bar-Lev Acked-by: David Sommerseth Signed-off-by: David Sommerseth --- configure.ac | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index d217343..ef34697 100644 --- a/configure.ac +++ b/configure.ac @@ -886,7 +886,8 @@ fi if test "${enable_pedantic}" = "yes"; then enable_strict="yes" - CFLAGS="${CFLAGS} -ansi -pedantic" + CFLAGS="${CFLAGS} -pedantic" + test "${WIN32}" != "yes" && CFLAGS="${CFLAGS} -ansi" fi if test "${enable_strict}" = "yes"; then CFLAGS="${CFLAGS} -Wall -Wno-unused-parameter -Wno-unused-function" -- cgit