X-Git-Url: https://wimlib.net/git/?p=wimlib;a=blobdiff_plain;f=wimlib_tchar.h;h=e902fab39a4e2227cb92888a0e0f346f28c5d5c3;hp=4d722379a6e85c90b441c53ad33bcfd48d73381b;hb=0e861d2430eda7f8b7d5ee4f67b8a582cc0a8cbd;hpb=dc59c6191f7b3e5d20ee2c105c74e3b18202a92f diff --git a/wimlib_tchar.h b/wimlib_tchar.h index 4d722379..e902fab3 100644 --- a/wimlib_tchar.h +++ b/wimlib_tchar.h @@ -41,6 +41,7 @@ typedef wchar_t tchar; # define tputs _putws # define tfputs fputws # define tfopen _wfopen +# define topen _wopen # define tstat _wstati64 # define tstrtol wcstol # define tstrtod wcstod @@ -53,7 +54,7 @@ typedef wchar_t tchar; * function defined ourselves. */ # define TSTRDUP WSTRDUP # define tmkdir(path, mode) _wmkdir(path) -# define tstrerror_r(errnum, buf, bufsize) _wcserror_s(buf, bufsize, errnum) +# define tstrerror_r win32_strerror_r_replacement # define trename win32_rename_replacement # define ttruncate win32_truncate_replacement #else /* __WIN32__ */ @@ -96,6 +97,7 @@ typedef char tchar; # define tputs puts # define tfputs fputs # define tfopen fopen +# define topen open # define tstat stat # define tunlink unlink # define tstrerror strerror