[libgensfile] Xz.cpp: #include "W32U_mini.h" in Windows builds. master
authorDavid Korth <gerbilsoft@gerbilsoft.com>
Wed, 6 Apr 2016 01:45:56 +0000 (21:45 -0400)
committerDavid Korth <gerbilsoft@gerbilsoft.com>
Wed, 6 Apr 2016 01:45:56 +0000 (21:45 -0400)
This fixes the MSVC build, since fseeko() isn't available in MSVCRT.

See commit 1269663fba73d2e073f68e462cf22baff557b066 for the same thing
in Xz.cpp.

src/libgensfile/Lzma.cpp

index 4529d49..272c439 100644 (file)
 #include <cstdlib>
 #include <cstring>
 
+#ifdef _WIN32
+// Win32 Unicode Translation Layer.
+// Needed for proper Unicode filename support on Windows.
+// Also required for large file support.
+#include "libcompat/W32U/W32U_mini.h"
+#endif
+
 // Byteswapping macros.
 #include "libcompat/byteswap.h"