const.h: do not include <windows.h> anymore
This commit is contained in:
parent
0f2153118a
commit
9847110fe4
20
src/const.h
20
src/const.h
@ -29,26 +29,6 @@
|
|||||||
#ifndef _CONST_H_
|
#ifndef _CONST_H_
|
||||||
#define _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
|
#ifndef M_2PI
|
||||||
#define M_2PI 6.28318530717958647692528676656 ///< Hmm, pie...
|
#define M_2PI 6.28318530717958647692528676656 ///< Hmm, pie...
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
@ -22,6 +22,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
#include <limits.h>
|
||||||
#if defined(USE_SDL) || defined(USE_SDL2)
|
#if defined(USE_SDL) || defined(USE_SDL2)
|
||||||
#include <SDL.h>
|
#include <SDL.h>
|
||||||
#if (defined(SDL_VIDEO_DRIVER_X11) && !defined(NO_X11)) || defined(__WIN32__)
|
#if (defined(SDL_VIDEO_DRIVER_X11) && !defined(NO_X11)) || defined(__WIN32__)
|
||||||
|
|||||||
1
src/io.c
1
src/io.c
@ -31,6 +31,7 @@
|
|||||||
#include <sys/stat.h>
|
#include <sys/stat.h>
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
#include <fcntl.h>
|
#include <fcntl.h>
|
||||||
|
#include <limits.h> // for PATH_MAX (MAX_PATH_CHARACTERS)
|
||||||
#ifndef _MSC_VER
|
#ifndef _MSC_VER
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#else
|
#else
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user