summaryrefslogtreecommitdiff
path: root/libstdc++-v3/include/bits
diff options
context:
space:
mode:
authorbkoz <bkoz@138bc75d-0d04-0410-961f-82ee72b054a4>2001-06-10 23:26:34 +0000
committerbkoz <bkoz@138bc75d-0d04-0410-961f-82ee72b054a4>2001-06-10 23:26:34 +0000
commitc872177ccb7fa207d03308a7fcb218dbd5cea1be (patch)
tree519f13fd83f7d6ef8ed3dc5b817593cc8124e012 /libstdc++-v3/include/bits
parent0ea5169b00c142f18526e5cb4d4509e9d946e6ac (diff)
downloadgcc-c872177ccb7fa207d03308a7fcb218dbd5cea1be.tar.gz
2001-06-10 Benjamin Kosnik <bkoz@redhat.com>
* acinclude.m4 (GLIBCPP_ENABLE_C99): Add stdio.h checking. Add checking for strtof, _Exit in stdlib.h * aclocal.m4: Regenerate. * configure.in: Regenerate. * include/c_std/bits/std_cstdio.h: Alphabetize lists. (snprintf): Put C99 functions into __gnu_cxx namespace. (vfscanf): Same. (vscanf): Same. (vsnprintf): Same. (vsscanf): Same. * include/c_std/bits/std_cstdlib.h: Alphabetize lists. Put undefs for C99 functions within _GLIBCPP_USE_C99 guard. (_Exit): Same. (strtof): Same. (strtold): Same. * include/bits/locale_facets.tcc: Check if C99 is enabled. * include/c_std/bits/std_cwchar.h (__gnu_cxx): Put undefs within C99 guard. * include/c_std/bits/cmath.tcc: Formatting tweak. * include/c_std/bits/std_cmath.h: Same. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@43161 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libstdc++-v3/include/bits')
-rw-r--r--libstdc++-v3/include/bits/locale_facets.tcc4
1 files changed, 2 insertions, 2 deletions
diff --git a/libstdc++-v3/include/bits/locale_facets.tcc b/libstdc++-v3/include/bits/locale_facets.tcc
index 1b7ff88895e..da20f7866a7 100644
--- a/libstdc++-v3/include/bits/locale_facets.tcc
+++ b/libstdc++-v3/include/bits/locale_facets.tcc
@@ -571,7 +571,7 @@ namespace std
// Stage 2: convert and store results.
char* __sanity;
errno = 0;
-#ifdef _GLIBCPP_HAVE_STRTOF
+#ifdef _GLIBCPP_USE_C99
float __f = strtof(__xtrc, &__sanity);
#else
float __f = static_cast<float>(strtod(__xtrc, &__sanity));
@@ -611,7 +611,7 @@ namespace std
return __beg;
}
-#if defined(_GLIBCPP_HAVE_STRTOLD) && !defined(__hpux)
+#if defined(_GLIBCPP_USE_C99) && !defined(__hpux)
template<typename _CharT, typename _InIter>
_InIter
num_get<_CharT, _InIter>::