Print this page
Fixes for wcstok.


 262 extern const wchar_t *wcspbrk(const wchar_t *, const wchar_t *);
 263 extern "C++" {
 264         inline wchar_t *wcspbrk(wchar_t *__ws1, const wchar_t *__ws2) {
 265                 return (wchar_t *)wcspbrk((const wchar_t *)__ws1, __ws2);
 266         }
 267 }
 268 extern const wchar_t *wcsrchr(const wchar_t *, wchar_t);
 269 extern "C++" {
 270         inline wchar_t *wcsrchr(wchar_t *__ws, wchar_t __wc) {
 271                 return (wchar_t *)wcsrchr((const wchar_t *)__ws, __wc);
 272         }
 273 }
 274 #else /* __cplusplus >= 199711L */
 275 extern wchar_t *wcschr(const wchar_t *, wchar_t);
 276 extern wchar_t *wcspbrk(const wchar_t *, const wchar_t *);
 277 extern wchar_t *wcsrchr(const wchar_t *, wchar_t);
 278 #endif /* __cplusplus >= 199711L */
 279 
 280 #if (!defined(_MSE_INT_H))
 281 #if defined(_XPG4) && !defined(_XPG5) /* XPG4 or XPG4v2 */
 282 extern wchar_t *wcstok(wchar_t *, const wchar_t *);
 283 extern size_t wcsftime(wchar_t *, size_t, const char *, const struct tm *);
 284 #else   /* XPG4 or XPG4v2 */
 285 #ifdef __PRAGMA_REDEFINE_EXTNAME
 286 #pragma redefine_extname wcstok __wcstok_xpg5
 287 #pragma redefine_extname wcsftime       __wcsftime_xpg5
 288 extern wchar_t *wcstok(wchar_t *_RESTRICT_KYWD, const wchar_t *_RESTRICT_KYWD,
 289         wchar_t **_RESTRICT_KYWD);
 290 extern size_t wcsftime(wchar_t *_RESTRICT_KYWD, size_t,
 291         const wchar_t *_RESTRICT_KYWD, const struct tm *_RESTRICT_KYWD);
 292 #else   /* __PRAGMA_REDEFINE_EXTNAME */
 293 extern wchar_t *__wcstok_xpg5(wchar_t *_RESTRICT_KYWD,
 294         const wchar_t *_RESTRICT_KYWD, wchar_t **_RESTRICT_KYWD);
 295 extern size_t __wcsftime_xpg5(wchar_t *_RESTRICT_KYWD, size_t,
 296         const wchar_t *_RESTRICT_KYWD, const struct tm *_RESTRICT_KYWD);
 297 #define wcstok  __wcstok_xpg5
 298 #define wcsftime        __wcsftime_xpg5
 299 #endif  /* __PRAGMA_REDEFINE_EXTNAME */
 300 #endif  /* XPG4 or XPG4v2 */
 301 #endif  /* !defined(_MSE_INT_H) */
 302 




 262 extern const wchar_t *wcspbrk(const wchar_t *, const wchar_t *);
 263 extern "C++" {
 264         inline wchar_t *wcspbrk(wchar_t *__ws1, const wchar_t *__ws2) {
 265                 return (wchar_t *)wcspbrk((const wchar_t *)__ws1, __ws2);
 266         }
 267 }
 268 extern const wchar_t *wcsrchr(const wchar_t *, wchar_t);
 269 extern "C++" {
 270         inline wchar_t *wcsrchr(wchar_t *__ws, wchar_t __wc) {
 271                 return (wchar_t *)wcsrchr((const wchar_t *)__ws, __wc);
 272         }
 273 }
 274 #else /* __cplusplus >= 199711L */
 275 extern wchar_t *wcschr(const wchar_t *, wchar_t);
 276 extern wchar_t *wcspbrk(const wchar_t *, const wchar_t *);
 277 extern wchar_t *wcsrchr(const wchar_t *, wchar_t);
 278 #endif /* __cplusplus >= 199711L */
 279 
 280 #if (!defined(_MSE_INT_H))
 281 #if defined(_XPG4) && !defined(_XPG5) /* XPG4 or XPG4v2 */
 282 extern wchar_t *wcstok(wchar_t *_RESTRICT_KYWD, const wchar_t *_RESTRICT_KYWD);
 283 extern size_t wcsftime(wchar_t *, size_t, const char *, const struct tm *);
 284 #else   /* XPG4 or XPG4v2 */
 285 #ifdef __PRAGMA_REDEFINE_EXTNAME
 286 #pragma redefine_extname wcstok __wcstok_xpg5
 287 #pragma redefine_extname wcsftime       __wcsftime_xpg5
 288 extern wchar_t *wcstok(wchar_t *_RESTRICT_KYWD, const wchar_t *_RESTRICT_KYWD,
 289         wchar_t **_RESTRICT_KYWD);
 290 extern size_t wcsftime(wchar_t *_RESTRICT_KYWD, size_t,
 291         const wchar_t *_RESTRICT_KYWD, const struct tm *_RESTRICT_KYWD);
 292 #else   /* __PRAGMA_REDEFINE_EXTNAME */
 293 extern wchar_t *__wcstok_xpg5(wchar_t *_RESTRICT_KYWD,
 294         const wchar_t *_RESTRICT_KYWD, wchar_t **_RESTRICT_KYWD);
 295 extern size_t __wcsftime_xpg5(wchar_t *_RESTRICT_KYWD, size_t,
 296         const wchar_t *_RESTRICT_KYWD, const struct tm *_RESTRICT_KYWD);
 297 #define wcstok  __wcstok_xpg5
 298 #define wcsftime        __wcsftime_xpg5
 299 #endif  /* __PRAGMA_REDEFINE_EXTNAME */
 300 #endif  /* XPG4 or XPG4v2 */
 301 #endif  /* !defined(_MSE_INT_H) */
 302