]> wimlib.net Git - wimlib/blobdiff - include/wimlib_tchar.h
wimlib.h: Fix docs for WIMLIB_OPEN_FLAG_WRITE_ACCESS
[wimlib] / include / wimlib_tchar.h
index e902fab39a4e2227cb92888a0e0f346f28c5d5c3..f0b17f01e51d06feda1f35b270994e1226a168c7 100644 (file)
@@ -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