* include/wchar.h: Protect prototypes only declared in the C++ STL
from being declared unless __cplusplus is defined.
This commit is contained in:
@ -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" */
|
||||
|
Reference in New Issue
Block a user