From 5ebb6dc4630f7fbe7acb36c58256599c155a3fe9 Mon Sep 17 00:00:00 2001 From: Thomas Bernard Date: Sat, 9 Feb 2019 16:12:53 +0100 Subject: [PATCH] fix warning about M_PI and MAX_PATH redefinition --- src/brush_ops.c | 2 +- src/graph.c | 2 +- src/sdlscreen.c | 2 +- src/setup.c | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/brush_ops.c b/src/brush_ops.c index 05dbe8a4..4a9db8d3 100644 --- a/src/brush_ops.c +++ b/src/brush_ops.c @@ -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 diff --git a/src/graph.c b/src/graph.c index 419fa786..f73afe1c 100644 --- a/src/graph.c +++ b/src/graph.c @@ -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 diff --git a/src/sdlscreen.c b/src/sdlscreen.c index 539086ee..593157d1 100644 --- a/src/sdlscreen.c +++ b/src/sdlscreen.c @@ -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 -} \ No newline at end of file +} diff --git a/src/setup.c b/src/setup.c index 62cc4cd8..394de020 100644 --- a/src/setup.c +++ b/src/setup.c @@ -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