Commit 8c79e4af authored by Michael Beck's avatar Michael Beck
Browse files

remove _GNU_SOURCE define again and add AC_FUNC_STRTOLD autoconf macro

[r27325]
parent 9106408d
......@@ -143,17 +143,7 @@ AC_C_LONG_DOUBLE
dnl Checks for library functions.
dnl =============================
dnl check for strerror
AC_CHECK_FUNC(strerror,,
AC_MSG_ERROR("need strerror function")
)
dnl we use the gnu extension obstack_printf
AC_DEFINE([_GNU_SOURCE], [], [we use gnu extensions])
AC_CHECK_FUNC(strerror,,
AC_MSG_ERROR("need obstack_printf function")
)
AC_FUNC_STRTOLD
dnl Error messaging
dnl ===============
......
......@@ -44,8 +44,7 @@
#include "xmalloc.h"
#if !defined(HAVE_LONG_DOUBLE) || defined(__CYGWIN__)
/* No strtold on windows and no replacement yet */
#ifndef HAVE_STRTOLD
#define strtold(s, e) strtod(s, e)
#endif
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment