diff options
author | Alon Bar-Lev <alon.barlev@gmail.com> | 2012-03-28 20:43:15 +0200 |
---|---|---|
committer | David Sommerseth <davids@redhat.com> | 2012-03-30 11:22:57 +0200 |
commit | 31444111839f0720d6173a71f66fa3a988bcf9fb (patch) | |
tree | ae2083746a75667c5e1023e01bbe63203959a965 /configure.ac | |
parent | 2e2939e8b2680b287e4cce3af84357684e5e5093 (diff) | |
download | openvpn-31444111839f0720d6173a71f66fa3a988bcf9fb.tar.gz openvpn-31444111839f0720d6173a71f66fa3a988bcf9fb.tar.xz openvpn-31444111839f0720d6173a71f66fa3a988bcf9fb.zip |
Enable pedantic in windows compilation
Apparently -ansi undef WIN32 macro.
Signed-off-by: Alon Bar-Lev <alon.barlev@gmail.com>
Acked-by: David Sommerseth <davids@redhat.com>
Signed-off-by: David Sommerseth <davids@redhat.com>
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 3 |
1 files changed, 2 insertions, 1 deletions
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" |