summaryrefslogtreecommitdiffstats
path: root/gnu
diff options
context:
space:
mode:
authorobrien <obrien@FreeBSD.org>2003-04-25 21:17:31 +0000
committerobrien <obrien@FreeBSD.org>2003-04-25 21:17:31 +0000
commita8b06a6a441f76581f3147c70a105b334a9fbdea (patch)
tree1e03afbd8fd67d4a350c7183e9637c197bfe8ff8 /gnu
parent2c1952027e34cbc170e2d0f21220f14394e0b5ea (diff)
downloadFreeBSD-src-a8b06a6a441f76581f3147c70a105b334a9fbdea.zip
FreeBSD-src-a8b06a6a441f76581f3147c70a105b334a9fbdea.tar.gz
Enable ISO-C99 compatibility -- among other things, this tells libstdc++
not to blindly undef isnan() and other functions that became macros in C99. Enable use of newly grown C99 functions: strtof(), strtold(), wcstof() Submitted by: das
Diffstat (limited to 'gnu')
-rw-r--r--gnu/lib/libstdc++/c++config.h10
-rw-r--r--gnu/lib/libstdc++/config.h8
2 files changed, 9 insertions, 9 deletions
diff --git a/gnu/lib/libstdc++/c++config.h b/gnu/lib/libstdc++/c++config.h
index 544ce92..58bcb24 100644
--- a/gnu/lib/libstdc++/c++config.h
+++ b/gnu/lib/libstdc++/c++config.h
@@ -101,7 +101,7 @@ libstdc++-v3/include/bits/c++config before full recompilation of the library.
#define _GLIBCPP_USE_LONG_LONG 1
// Define if C99 features such as lldiv_t, llabs, lldiv should be exposed.
-/* #undef _GLIBCPP_USE_C99 */
+#define _GLIBCPP_USE_C99 1
// Define if code specialized for wchar_t should be used.
/* #undef _GLIBCPP_USE_WCHAR_T */
@@ -649,10 +649,10 @@ libstdc++-v3/include/bits/c++config before full recompilation of the library.
/* #undef _GLIBCPP_HAVE_SQRTL */
/* Define if you have the strtof function. */
-/* #undef _GLIBCPP_HAVE_STRTOF */
+#define _GLIBCPP_HAVE_STRTOF 1
/* Define if you have the strtold function. */
-/* #undef _GLIBCPP_HAVE_STRTOLD */
+#define _GLIBCPP_HAVE_STRTOLD 1
/* Define if you have the swprintf function. */
#define _GLIBCPP_HAVE_SWPRINTF 1
@@ -748,7 +748,7 @@ libstdc++-v3/include/bits/c++config before full recompilation of the library.
#define _GLIBCPP_HAVE_WCSTOD 1
/* Define if you have the wcstof function. */
-/* #undef _GLIBCPP_HAVE_WCSTOF */
+#define _GLIBCPP_HAVE_WCSTOF 1
/* Define if you have the wcstok function. */
#define _GLIBCPP_HAVE_WCSTOK 1
@@ -832,7 +832,7 @@ libstdc++-v3/include/bits/c++config before full recompilation of the library.
#define _GLIBCPP_HAVE_SYS_RESOURCE_H 1
/* Define if you have the <sys/stat.h> header file. */
-/* #undef _GLIBCPP_HAVE_SYS_STAT_H */
+#define _GLIBCPP_HAVE_SYS_STAT_H 1
/* Define if you have the <sys/types.h> header file. */
#define _GLIBCPP_HAVE_SYS_TYPES_H 1
diff --git a/gnu/lib/libstdc++/config.h b/gnu/lib/libstdc++/config.h
index cce0516..7cf13d1 100644
--- a/gnu/lib/libstdc++/config.h
+++ b/gnu/lib/libstdc++/config.h
@@ -13,7 +13,7 @@
#define _GLIBCPP_USE_LONG_LONG 1
// Define if C99 features such as lldiv_t, llabs, lldiv should be exposed.
-/* #undef _GLIBCPP_USE_C99 */
+#define _GLIBCPP_USE_C99 1
// Define if code specialized for wchar_t should be used.
/* #undef _GLIBCPP_USE_WCHAR_T */
@@ -561,10 +561,10 @@
/* #undef HAVE_SQRTL */
/* Define if you have the strtof function. */
-/* #undef HAVE_STRTOF */
+#define HAVE_STRTOF 1
/* Define if you have the strtold function. */
-/* #undef HAVE_STRTOLD */
+#define HAVE_STRTOLD 1
/* Define if you have the swprintf function. */
#define HAVE_SWPRINTF 1
@@ -660,7 +660,7 @@
#define HAVE_WCSTOD 1
/* Define if you have the wcstof function. */
-/* #undef HAVE_WCSTOF */
+#define HAVE_WCSTOF 1
/* Define if you have the wcstok function. */
#define HAVE_WCSTOK 1
OpenPOWER on IntegriCloud