File openxcom-math.patch of Package openxcom

Index: openxcom-1.0.0/src/Basescape/BaseInfoState.cpp
===================================================================
--- openxcom-1.0.0.orig/src/Basescape/BaseInfoState.cpp
+++ openxcom-1.0.0/src/Basescape/BaseInfoState.cpp
@@ -18,6 +18,7 @@
  */
 #include "BaseInfoState.h"
 #include <sstream>
+#include <math.h>
 #include "../Engine/Game.h"
 #include "../Engine/Action.h"
 #include "../Resource/ResourcePack.h"
Index: openxcom-1.0.0/src/Basescape/CraftInfoState.cpp
===================================================================
--- openxcom-1.0.0.orig/src/Basescape/CraftInfoState.cpp
+++ openxcom-1.0.0/src/Basescape/CraftInfoState.cpp
@@ -18,6 +18,7 @@
  */
 #include "CraftInfoState.h"
 #include <sstream>
+#include <math.h>
 #include "../Engine/Game.h"
 #include "../Resource/ResourcePack.h"
 #include "../Engine/Language.h"
Index: openxcom-1.0.0/src/Engine/OptionInfo.cpp
===================================================================
--- openxcom-1.0.0.orig/src/Engine/OptionInfo.cpp
+++ openxcom-1.0.0/src/Engine/OptionInfo.cpp
@@ -16,6 +16,7 @@
  * You should have received a copy of the GNU General Public License
  * along with OpenXcom.  If not, see <http://www.gnu.org/licenses/>.
  */
+#include <algorithm>
 #include "OptionInfo.h"
 #include "Exception.h"
 
Index: openxcom-1.0.0/src/Engine/Language.cpp
===================================================================
--- openxcom-1.0.0.orig/src/Engine/Language.cpp
+++ openxcom-1.0.0/src/Engine/Language.cpp
@@ -19,6 +19,7 @@
 #include "Language.h"
 #include <assert.h>
 #include <locale>
+#include <algorithm>
 #include <fstream>
 #include <cassert>
 #include "CrossPlatform.h"
Index: openxcom-1.0.0/src/Menu/ListLoadState.cpp
===================================================================
--- openxcom-1.0.0.orig/src/Menu/ListLoadState.cpp
+++ openxcom-1.0.0/src/Menu/ListLoadState.cpp
@@ -16,6 +16,7 @@
  * You should have received a copy of the GNU General Public License
  * along with OpenXcom.  If not, see <http://www.gnu.org/licenses/>.
  */
+#include <algorithm>
 #include "ListLoadState.h"
 #include "../Engine/Game.h"
 #include "../Engine/Language.h"
Index: openxcom-1.0.0/src/Menu/ListGamesState.cpp
===================================================================
--- openxcom-1.0.0.orig/src/Menu/ListGamesState.cpp
+++ openxcom-1.0.0/src/Menu/ListGamesState.cpp
@@ -18,6 +18,7 @@
  */
 #include "ListGamesState.h"
 #include <utility>
+#include <algorithm>
 #include "../Engine/Logger.h"
 #include "../Savegame/SavedGame.h"
 #include "../Engine/Game.h"
Index: openxcom-1.0.0/src/Savegame/CraftWeapon.cpp
===================================================================
--- openxcom-1.0.0.orig/src/Savegame/CraftWeapon.cpp
+++ openxcom-1.0.0/src/Savegame/CraftWeapon.cpp
@@ -16,6 +16,7 @@
  * You should have received a copy of the GNU General Public License
  * along with OpenXcom.  If not, see <http://www.gnu.org/licenses/>.
  */
+#include <cmath>
 #include "CraftWeapon.h"
 #include "../Ruleset/RuleCraftWeapon.h"
 #include "../Ruleset/Ruleset.h"
Index: openxcom-1.0.0/src/Savegame/Craft.cpp
===================================================================
--- openxcom-1.0.0.orig/src/Savegame/Craft.cpp
+++ openxcom-1.0.0/src/Savegame/Craft.cpp
@@ -19,6 +19,7 @@
 #define _USE_MATH_DEFINES
 #include "Craft.h"
 #include <cmath>
+#include <algorithm>
 #include <sstream>
 #include "../Engine/Language.h"
 #include "../Ruleset/RuleCraft.h"
openSUSE Build Service is sponsored by