msys2: fixed redefined include warnings

This commit is contained in:
Philippe Renon
2016-06-11 17:43:49 +02:00
parent bc1185c41a
commit 3bf6fb1778
2 changed files with 5 additions and 0 deletions

View File

@@ -19,7 +19,9 @@
#include <osgDB/FileUtils>
#ifdef WIN32
#if !defined(__MINGW32__)
#define _WIN32_WINNT 0x0500
#endif
#include <windows.h>
#endif

View File

@@ -34,7 +34,10 @@ typedef char TCHAR;
#include <direct.h> // for _mkdir
#define mkdir(x,y) _mkdir((x))
#if !defined(__MINGW32__)
#define stat64 _stati64
#endif
// set up for windows so acts just like unix access().
#ifndef F_OK