[libgensfile] Xz.cpp: #include "W32U_mini.h" in Windows builds.
authorDavid Korth <gerbilsoft@gerbilsoft.com>
Thu, 31 Mar 2016 00:09:42 +0000 (20:09 -0400)
committerDavid Korth <gerbilsoft@gerbilsoft.com>
Thu, 31 Mar 2016 00:09:42 +0000 (20:09 -0400)
This fixes the MSVC build, since fseeko() isn't available in MSVCRT.

src/libgensfile/Xz.cpp

index cd470df..de12637 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"