]> wimlib.net Git - wimlib/blobdiff - include/wimlib_tchar.h
read_wim_lookup_table(): Correctly get uncompressed size of packs
[wimlib] / include / wimlib_tchar.h
index 4d33efef554fa2c804a5b79bbc59dd10b81b03c0..33ad0cc54c1dd464bba2961c79ab52158d2d0081 100644 (file)
@@ -24,7 +24,7 @@ typedef wchar_t tchar;
 #  define tmempcpy     wmempcpy
 #  define tstrcpy      wcscpy
 #  define tprintf      wprintf
-#  define tsprintf     _swprintf
+#  define tsprintf     swprintf
 #  define tfprintf     fwprintf
 #  define tvfprintf    vfwprintf
 #  define istalpha     iswalpha
@@ -53,6 +53,7 @@ typedef wchar_t tchar;
 #  define taccess      _waccess
 #  define tstrdup      wcsdup
 #  define ttempnam      _wtempnam
+#  define tgetenv      _wgetenv
 /* 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. */
@@ -114,6 +115,7 @@ typedef char tchar;
 #  define tmkdir       mkdir
 #  define tstrdup      strdup
 #  define ttempnam      tempnam
+#  define tgetenv      getenv
 #  define TSTRDUP      STRDUP
 #  define tstrerror_r  strerror_r
 #  define trename      rename