mirror of
https://github.com/unicode-org/icu.git
synced 2025-04-08 06:53:45 +00:00
ICU-347 do not use wchar.h except when we really need it and we know that we have it
X-SVN-Rev: 1088
This commit is contained in:
parent
db929853bc
commit
7362589426
1 changed files with 6 additions and 2 deletions
|
@ -27,9 +27,13 @@
|
|||
|
||||
#include <string.h>
|
||||
#include <ctype.h>
|
||||
|
||||
#include "unicode/utypes.h"
|
||||
|
||||
/* Do this after utypes.h so that we have U_HAVE_WCHAR_H . */
|
||||
#if U_HAVE_WCHAR_H
|
||||
# include <wchar.h>
|
||||
#endif
|
||||
|
||||
#define uprv_strcpy(dst, src) strcpy(dst, src)
|
||||
#define uprv_strcpyWithSize(dst, src, size) strncpy(dst, src, size)
|
||||
#define uprv_strncpy(dst, src, size) strncpy(dst, src, size)
|
||||
|
@ -56,7 +60,7 @@
|
|||
/* Wide-character functions */
|
||||
/*===========================================================================*/
|
||||
|
||||
/* The following are not available on all systemts, defined in wchar.h or string.h . */
|
||||
/* The following are not available on all systems, defined in wchar.h or string.h . */
|
||||
#if U_HAVE_WCHAR_H
|
||||
# define uprv_wcscat(dst, src) wcscat(dst, src)
|
||||
# define uprv_wcscpy(dst, src) wcscpy(dst, src)
|
||||
|
|
Loading…
Add table
Reference in a new issue