From c7463c5f6cd3d882a960eff2cbd414f33ddf0b32 Mon Sep 17 00:00:00 2001 From: Nay Date: Sat, 9 Mar 2013 00:12:50 +0000 Subject: Buildsystem: Add support for compiling with MinGW on Windows Tested with: - Windows 8 x64 - MySQL 5.5.30 win32 - OpenSSL 1.0.1c (32 bits) - No PCH - MinGW with GCC 4.7.0 TODO: - Fix compile/link with PCH enabled - Fix compile with WheatyExceptonionReport enabled (ignored for now) - Fix compile of .rc files (ignored for now) - Test with more platforms --- dep/g3dlite/source/FileSystem.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'dep/g3dlite/source/FileSystem.cpp') diff --git a/dep/g3dlite/source/FileSystem.cpp b/dep/g3dlite/source/FileSystem.cpp index 76a361162c9..f082937a908 100644 --- a/dep/g3dlite/source/FileSystem.cpp +++ b/dep/g3dlite/source/FileSystem.cpp @@ -25,8 +25,11 @@ // Needed for _findfirst # include - -#define stat64 _stat64 +# ifdef __MINGW32__ +# define stat64 stat +# else +# define stat64 _stat64 +# endif #else # include # include -- cgit v1.2.3