aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexandre Oliva <aoliva@redhat.com>2001-01-01 00:06:50 +0000
committerAlexandre Oliva <aoliva@gcc.gnu.org>2001-01-01 00:06:50 +0000
commit2b872543ba3c1398f8b84d905e58b02ee2353cde (patch)
tree05967d9b742b7bf3a4ee0b628081788918dbc505
parent6ec9201068573cc842e105a20aad853282472b37 (diff)
downloadgcc-2b872543ba3c1398f8b84d905e58b02ee2353cde.zip
gcc-2b872543ba3c1398f8b84d905e58b02ee2353cde.tar.gz
gcc-2b872543ba3c1398f8b84d905e58b02ee2353cde.tar.bz2
* include/c_std/bits/std_cstdlib.h (mblen): Protect against macro.
From-SVN: r38574
-rw-r--r--libstdc++-v3/ChangeLog4
-rw-r--r--libstdc++-v3/include/c_std/bits/std_cstdlib.h3
2 files changed, 7 insertions, 0 deletions
diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog
index a09e85f..6b657f9 100644
--- a/libstdc++-v3/ChangeLog
+++ b/libstdc++-v3/ChangeLog
@@ -1,3 +1,7 @@
+2000-12-31 Alexandre Oliva <aoliva@redhat.com>
+
+ * include/c_std/bits/std_cstdlib.h (mblen): Protect against macro.
+
2000-12-23 Benjamin Kosnik <bkoz@redhat.com>
* src/Makefile.am (CSTD_INCLUDES): Change from CSHADOW_INCLUDES.
diff --git a/libstdc++-v3/include/c_std/bits/std_cstdlib.h b/libstdc++-v3/include/c_std/bits/std_cstdlib.h
index a43c1c5..0cd0359 100644
--- a/libstdc++-v3/include/c_std/bits/std_cstdlib.h
+++ b/libstdc++-v3/include/c_std/bits/std_cstdlib.h
@@ -85,6 +85,9 @@ namespace std
extern "C" long int labs(long int);
extern "C" div_t div(int, int);
extern "C" ldiv_t ldiv(long int, long int);
+#ifdef mblen
+#undef mblen
+#endif
extern "C" int mblen(const char*, size_t);
extern "C" int mbtowc(wchar_t*, const char*, size_t);
extern "C" int wctomb(char*, wchar_t);