fix warning about M_PI and MAX_PATH redefinition

This commit is contained in:
Thomas Bernard 2019-02-09 16:12:53 +01:00
parent ada76ff54a
commit 5ebb6dc463
No known key found for this signature in database
GPG Key ID: 0FF11B67A5C0863C
4 changed files with 4 additions and 4 deletions

View File

@ -39,7 +39,7 @@
#include "windows.h"
#include "keyboard.h"
#if defined(__VBCC__) || defined(__GP2X__) || defined(__WIZ__) || defined(__CAANOO__)
#ifndef M_PI
#define M_PI 3.141592653589793238462643
#endif

View File

@ -56,7 +56,7 @@
#include "sdlscreen.h"
#endif
#if defined(__VBCC__) || defined(__GP2X__) || defined(__WIZ__) || defined(__CAANOO__)
#ifndef M_PI
#define M_PI 3.141592653589793238462643
#endif

View File

@ -786,4 +786,4 @@ void Set_mouse_position(void)
#elif defined(USE_SDL2)
SDL_WarpMouseInWindow(NULL, Mouse_X*Pixel_width, Mouse_Y*Pixel_height);
#endif
}
}

View File

@ -54,7 +54,7 @@
#include "setup.h"
#include "global.h"
#if defined(__GP2X__) || defined(__WIZ__) || defined(__CAANOO__)
#ifndef PATH_MAX
// This is a random default value ...
#define PATH_MAX 32768
#endif