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:
Michał Janiszewski authored and Ted John committed 2016-05-28 12:24:52 +01:00
1 parent 1d14f21e25
commit 451379c8a3
2 files changed
+4 -1

No files matched your search

+3 -1
View File
@@ -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>
+1
View File
@@ -18,6 +18,7 @@
#define _RCT2_H_
#include <SDL_platform.h>
#include <SDL_config.h>
#ifndef _USE_MATH_DEFINES
#define _USE_MATH_DEFINES