Fix build on gcc 5.0 (#7586)
authorzeuner <github@quidecco.de>
Thu, 26 Jul 2018 19:49:38 +0000 (21:49 +0200)
committerSmallJoker <SmallJoker@users.noreply.github.com>
Thu, 26 Jul 2018 19:49:38 +0000 (21:49 +0200)
src/mapgen/mg_ore.cpp
src/network/connection.cpp
src/util/srp.cpp

index 6f27b91ac444866666ea08afad3a6a16cbe759b6..c36249cb9e1fa0ffe55dfaf6e66dfafefa8b316a 100644 (file)
@@ -24,6 +24,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
 #include "map.h"
 #include "log.h"
 #include "util/numeric.h"
+#include <cmath>
 #include <algorithm>
 
 
index 366f94c523126f0076c8a77c59546182d9c0ecbf..495b15426b85491d769e792bf25d37399d9055dc 100644 (file)
@@ -20,6 +20,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
 #include <iomanip>
 #include <cerrno>
 #include <algorithm>
+#include <cmath>
 #include "connection.h"
 #include "serialization.h"
 #include "log.h"
index a3452e022b3578d4b351f1360a8a890dc653b82c..d825f0ebc24e65494045f3ac99568dea27e96023 100644 (file)
@@ -27,6 +27,9 @@
  */
 
 // clang-format off
+
+#include <cstddef>
+
 #ifdef WIN32
        #include <windows.h>
        #include <wincrypt.h>