summaryrefslogtreecommitdiff
path: root/openxcom-cmath-algorithm-fixes.patch
blob: e27d703e686248c50a72ccf7023ebb9b870fdb41 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
diff -aur a/src/Basescape/BaseInfoState.h b/src/Basescape/BaseInfoState.h
--- a/src/Basescape/BaseInfoState.h	2018-03-14 15:06:59.665628271 +0000
+++ b/src/Basescape/BaseInfoState.h	2018-03-14 15:43:22.067605905 +0000
@@ -19,6 +19,7 @@
 #ifndef OPENXCOM_BASEINFOSTATE_H
 #define OPENXCOM_BASEINFOSTATE_H
 
+#include <cmath>
 #include "../Engine/State.h"
 
 namespace OpenXcom
diff -aur a/src/Basescape/CraftInfoState.h b/src/Basescape/CraftInfoState.h
--- a/src/Basescape/CraftInfoState.h	2018-03-14 15:02:09.783729176 +0000
+++ b/src/Basescape/CraftInfoState.h	2018-03-14 15:43:16.476703036 +0000
@@ -19,6 +19,7 @@
 #ifndef OPENXCOM_CRAFTINFOSTATE_H
 #define OPENXCOM_CRAFTINFOSTATE_H
 
+#include <cmath>
 #include "../Engine/State.h"
 
 namespace OpenXcom
diff -aur a/src/Engine/Language.h b/src/Engine/Language.h
--- a/src/Engine/Language.h	2018-03-14 15:11:37.236763021 +0000
+++ b/src/Engine/Language.h	2018-03-14 15:42:14.751775215 +0000
@@ -23,6 +23,7 @@
 #include <vector>
 #include <string>
 #include <yaml-cpp/yaml.h>
+#include <algorithm>
 #include "LocalizedText.h"
 #include "../Savegame/Soldier.h"
 
diff -aur a/src/Engine/OptionInfo.h b/src/Engine/OptionInfo.h
--- a/src/Engine/OptionInfo.h	2018-03-14 15:14:50.346384845 +0000
+++ b/src/Engine/OptionInfo.h	2018-03-14 15:42:14.750775233 +0000
@@ -23,6 +23,7 @@
 #include <string>
 #include <map>
 #include <SDL.h>
+#include <algorithm>
 
 namespace OpenXcom
 {
diff -aur a/src/Savegame/CraftWeapon.h b/src/Savegame/CraftWeapon.h
--- a/src/Savegame/CraftWeapon.h	2018-03-14 15:27:14.695387913 +0000
+++ b/src/Savegame/CraftWeapon.h	2018-03-14 15:42:14.748775267 +0000
@@ -21,6 +21,7 @@
 
 #include <string>
 #include <yaml-cpp/yaml.h>
+#include <cmath>
 
 namespace OpenXcom
 {