diff options
author | Earnie Boyd <earnie@users.sf.net> | 2001-01-18 18:40:50 +0300 |
---|---|---|
committer | Earnie Boyd <earnie@users.sf.net> | 2001-01-18 18:40:50 +0300 |
commit | 74a3cd0a4f15c1c9dfe4044d7a54b420e5a5f7f6 (patch) | |
tree | 962d2643fd9fd58b8f1de264cfce676620d1edc3 /winsup/mingw/include | |
parent | c807d3552af3050bb8902508f034bf44a3ea53e8 (diff) |
* include/wchar.h: Protect prototypes only declared in the C++ STL
from being declared unless __cplusplus is defined.
Diffstat (limited to 'winsup/mingw/include')
-rw-r--r-- | winsup/mingw/include/wchar.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/winsup/mingw/include/wchar.h b/winsup/mingw/include/wchar.h index 9d598e80e..8aa8ae40b 100644 --- a/winsup/mingw/include/wchar.h +++ b/winsup/mingw/include/wchar.h @@ -256,6 +256,8 @@ wchar_t * wmktemp(wchar_t *); #endif /* not __STRICT_ANSI__ */ +#ifdef __cplusplus +/* These are only defined in C++ STL runtime dll. */ typedef int mbstate_t; typedef wchar_t _Wint_t; @@ -266,7 +268,8 @@ size_t mbsrtowcs(wchar_t *, const char **, size_t, mbstate_t *); size_t wcrtomb(char *, wchar_t, mbstate_t *); size_t wcsrtombs(char *, const wchar_t **, size_t, mbstate_t *); -int wctob(wint_t); +int wctob(wint_t); +#endif def __cplusplus #ifdef __cplusplus } /* end of extern "C" */ |