mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2025-12-10 09:32:29 +01:00
Handle SDL builds which already have HAVE_MATH_H defined (#3765)
ArchLinux's SDL2 build for mingw already has HAVE_MATH_H define, this fixes warnings I was getting, as they are now upgraded to errors.
This commit is contained in:
committed by
Ted John
parent
1d14f21e25
commit
451379c8a3
@@ -20,7 +20,9 @@
|
|||||||
#include "../common.h"
|
#include "../common.h"
|
||||||
|
|
||||||
#ifdef __WINDOWS__
|
#ifdef __WINDOWS__
|
||||||
#define HAVE_MATH_H
|
#ifndef HAVE_MATH_H
|
||||||
|
#define HAVE_MATH_H
|
||||||
|
#endif
|
||||||
#endif // __WINDOWS__
|
#endif // __WINDOWS__
|
||||||
|
|
||||||
#include <SDL.h>
|
#include <SDL.h>
|
||||||
|
|||||||
@@ -18,6 +18,7 @@
|
|||||||
#define _RCT2_H_
|
#define _RCT2_H_
|
||||||
|
|
||||||
#include <SDL_platform.h>
|
#include <SDL_platform.h>
|
||||||
|
#include <SDL_config.h>
|
||||||
|
|
||||||
#ifndef _USE_MATH_DEFINES
|
#ifndef _USE_MATH_DEFINES
|
||||||
#define _USE_MATH_DEFINES
|
#define _USE_MATH_DEFINES
|
||||||
|
|||||||
Reference in New Issue
Block a user