remove a few #include <windows.h>

also #include <direct.h>
This commit is contained in:
Thomas Bernard 2019-05-22 14:43:59 +02:00
parent 9847110fe4
commit 811cb619b6
No known key found for this signature in database
GPG Key ID: 0FF11B67A5C0863C
3 changed files with 5 additions and 7 deletions

View File

@ -24,8 +24,6 @@
#if defined(__amigaos4__) || defined(__AROS__) || defined(__MORPHOS__) || defined(__amigaos__)
#include <proto/dos.h>
#include <sys/types.h>
#elif defined(__WIN32__) || defined(WIN32)
#include <windows.h>
#endif
#include <fcntl.h>
@ -89,7 +87,6 @@
#ifndef _MSC_VER
#include <dirent.h>
#endif
#include <windows.h>
#else
#include <dirent.h>
#endif

View File

@ -31,8 +31,8 @@
#elif defined (__MINT__)
#include <mint/sysbind.h>
#elif defined(WIN32)
#include <windows.h>
#include <commdlg.h>
//#include <windows.h> // Native_filesel() is currently disabled
//#include <commdlg.h>
#endif
#include <assert.h>
@ -87,6 +87,7 @@
// -- Native fileselector for WIN32
#if 0 // Native fileselector is disabled
// Returns 0 if all ok, something else if failed
byte Native_filesel(byte load)
{
@ -134,7 +135,8 @@ byte Native_filesel(byte load)
#endif
return 255; // fail !
#endif
}
}
#endif
// -- "Standard" fileselector for other platforms

View File

@ -32,7 +32,6 @@
#if defined(__WIN32__) || defined(WIN32)
#include <windows.h>
#ifdef _MSC_VER
#include <direct.h>
#define strdup _strdup
#if _MSC_VER < 1900
#define snprintf _snprintf