From 451379c8a3d4afe157bb2519538eac31953d2377 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Janiszewski?= Date: Sat, 28 May 2016 13:24:52 +0200 Subject: [PATCH] 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. --- src/platform/platform.h | 4 +++- src/rct2.h | 1 + 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/platform/platform.h b/src/platform/platform.h index ad73ee361d..dccafe8e92 100644 --- a/src/platform/platform.h +++ b/src/platform/platform.h @@ -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 diff --git a/src/rct2.h b/src/rct2.h index 6b47f4f2ae..ac9c01245e 100644 --- a/src/rct2.h +++ b/src/rct2.h @@ -18,6 +18,7 @@ #define _RCT2_H_ #include +#include #ifndef _USE_MATH_DEFINES #define _USE_MATH_DEFINES