X-Git-Url: https://wimlib.net/git/?p=wimlib;a=blobdiff_plain;f=include%2Fwimlib_tchar.h;h=f0b17f01e51d06feda1f35b270994e1226a168c7;hp=e902fab39a4e2227cb92888a0e0f346f28c5d5c3;hb=389f993fdf085a9bf120f8a17464e321d6e42898;hpb=e8c3ca2d1d0cac3d64985b45a9f654d2029a7518 diff --git a/include/wimlib_tchar.h b/include/wimlib_tchar.h index e902fab3..f0b17f01 100644 --- a/include/wimlib_tchar.h +++ b/include/wimlib_tchar.h @@ -21,6 +21,7 @@ typedef wchar_t tchar; * with the "wide-character" functions. */ # define tmemchr wmemchr # define tmemcpy wmemcpy +# define tmempcpy wmempcpy # define tstrcpy wcscpy # define tprintf wprintf # define tsprintf swprintf @@ -49,10 +50,11 @@ typedef wchar_t tchar; # define tunlink _wunlink # define tstrerror _wcserror # define taccess _waccess +# define tstrdup wcsdup /* The following "tchar" functions do not have exact wide-character equivalents * on Windows so require parameter rearrangement or redirection to a replacement * function defined ourselves. */ -# define TSTRDUP WSTRDUP +# define TSTRDUP WCSDUP # define tmkdir(path, mode) _wmkdir(path) # define tstrerror_r win32_strerror_r_replacement # define trename win32_rename_replacement @@ -77,6 +79,7 @@ typedef char tchar; * string functions. */ # define tmemchr memchr # define tmemcpy memcpy +# define tmempcpy mempcpy # define tstrcpy strcpy # define tprintf printf # define tsprintf sprintf @@ -105,6 +108,7 @@ typedef char tchar; # define tstrtod strtod # define tstrtoul strtoul # define tmkdir mkdir +# define tstrdup strdup # define TSTRDUP STRDUP # define tstrerror_r strerror_r # define trename rename