forked from rosebudai/OpenRCT2-Web
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:
1 parent
1d14f21e25
commit
451379c8a3
2 files changed
+4
-1
No files matched your search
@@ -20,7 +20,9 @@
|
||||
#include "../common.h"
|
||||
|
||||
#ifdef __WINDOWS__
|
||||
#define HAVE_MATH_H
|
||||
#ifndef HAVE_MATH_H
|
||||
#define HAVE_MATH_H
|
||||
#endif
|
||||
#endif // __WINDOWS__
|
||||
|
||||
#include <SDL.h>
|
||||
|
||||
@@ -18,6 +18,7 @@
|
||||
#define _RCT2_H_
|
||||
|
||||
#include <SDL_platform.h>
|
||||
#include <SDL_config.h>
|
||||
|
||||
#ifndef _USE_MATH_DEFINES
|
||||
#define _USE_MATH_DEFINES
|
||||
|
||||
Reference in new issue
Block a user