const.h: do not include <windows.h> anymore

This commit is contained in:
Thomas Bernard 2019-05-22 13:31:12 +02:00
parent 0f2153118a
commit 9847110fe4
No known key found for this signature in database
GPG Key ID: 0FF11B67A5C0863C
3 changed files with 2 additions and 20 deletions

View File

@ -29,26 +29,6 @@
#ifndef _CONST_H_
#define _CONST_H_
#if defined(__GP2X__) || defined(__WIZ__) || defined(__CAANOO__) || defined(__amigaos__)
// These platforms don't seem to have PATH_MAX
#undef PATH_MAX
#define PATH_MAX 260
#elif defined(__ANDROID__)
#include <sys/limits.h> // for PATH_MAX
#else
#include <limits.h> // for PATH_MAX
#endif
#ifndef PATH_MAX
#ifdef _MSC_VER
#include <windows.h>
#endif
#ifdef MAX_PATH
#define PATH_MAX MAX_PATH
#else
#define PATH_MAX 4096
#endif
#endif
#ifndef M_2PI
#define M_2PI 6.28318530717958647692528676656 ///< Hmm, pie...
#endif

View File

@ -22,6 +22,7 @@
*/
#include <string.h>
#include <limits.h>
#if defined(USE_SDL) || defined(USE_SDL2)
#include <SDL.h>
#if (defined(SDL_VIDEO_DRIVER_X11) && !defined(NO_X11)) || defined(__WIN32__)

View File

@ -31,6 +31,7 @@
#include <sys/stat.h>
#include <errno.h>
#include <fcntl.h>
#include <limits.h> // for PATH_MAX (MAX_PATH_CHARACTERS)
#ifndef _MSC_VER
#include <unistd.h>
#else