summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHaru <haru@dotalux.com>2016-02-20 16:13:54 +0100
committerHaru <haru@dotalux.com>2016-02-20 16:13:54 +0100
commit8aa074958fc2162553055c4083f7696dab12161f (patch)
tree1925fbd4ae83c971a7578ad27c19b85015c79b18
parentc235a3034ed8c49bd03bc01a18a9788e802baea4 (diff)
downloadhercules-8aa074958fc2162553055c4083f7696dab12161f.tar.gz
hercules-8aa074958fc2162553055c4083f7696dab12161f.tar.bz2
hercules-8aa074958fc2162553055c4083f7696dab12161f.tar.xz
hercules-8aa074958fc2162553055c4083f7696dab12161f.zip
Added explicit c99 mode to CFLAGS in the configure script
Signed-off-by: Haru <haru@dotalux.com>
-rwxr-xr-xconfigure4
-rw-r--r--configure.in2
-rw-r--r--src/common/cbasetypes.h2
3 files changed, 4 insertions, 4 deletions
diff --git a/configure b/configure
index 56938baf9..0e8d178e0 100755
--- a/configure
+++ b/configure
@@ -1,5 +1,5 @@
#! /bin/sh
-# From configure.in 9bd03cf.
+# From configure.in c235a30.
# Guess values for system-dependent variables and create Makefiles.
# Generated by GNU Autoconf 2.69.
#
@@ -4585,7 +4585,7 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu
# -Werror-implicit-function-declaration -Wtrampolines
# -Wjump-misses-init
-CFLAGS="$CFLAGS -pipe -ffast-math -Wall -Wextra -Wno-sign-compare"
+CFLAGS="$CFLAGS -pipe -ffast-math -Wall -Wextra -Wno-sign-compare -std=c99"
CPPFLAGS="$CPPFLAGS -I../common"
LDFLAGS="$LDFLAGS"
diff --git a/configure.in b/configure.in
index 4729c095e..27deb0898 100644
--- a/configure.in
+++ b/configure.in
@@ -474,7 +474,7 @@ AC_LANG([C])
# -Werror-implicit-function-declaration -Wtrampolines
# -Wjump-misses-init
-CFLAGS="$CFLAGS -pipe -ffast-math -Wall -Wextra -Wno-sign-compare"
+CFLAGS="$CFLAGS -pipe -ffast-math -Wall -Wextra -Wno-sign-compare -std=c99"
CPPFLAGS="$CPPFLAGS -I../common"
LDFLAGS="$LDFLAGS"
diff --git a/src/common/cbasetypes.h b/src/common/cbasetypes.h
index 61d0646eb..6843ce486 100644
--- a/src/common/cbasetypes.h
+++ b/src/common/cbasetypes.h
@@ -94,7 +94,7 @@
// debug function name
#ifndef __NETBSD__
-#if __STDC_VERSION__ < 199901L
+#if !defined(__STDC_VERSION__) || __STDC_VERSION__ < 199901L
# if __GNUC__ >= 2
# define __func__ __FUNCTION__
# else