diff --git a/src/3rdparty/javascriptcore/JavaScriptCore/wtf/DateMath.cpp b/src/3rdparty/javascriptcore/JavaScriptCore/wtf/DateMath.cpp
index a6eb0d63d59e72a7c661c47febb4c424ceb3251e..a2a4d30a5d8ae967911325d5c463f10f53371065 100644
--- a/src/3rdparty/javascriptcore/JavaScriptCore/wtf/DateMath.cpp
+++ b/src/3rdparty/javascriptcore/JavaScriptCore/wtf/DateMath.cpp
@@ -74,7 +74,6 @@
 #include "Assertions.h"
 #include "ASCIICType.h"
 #include "CurrentTime.h"
-#include "MathExtras.h"
 #include "StringExtras.h"
 
 #include <algorithm>
@@ -105,6 +104,8 @@ extern "C" struct tm * localtime(const time_t *timer);
 #include "CallFrame.h"
 #endif
 
+#include "MathExtras.h"
+
 #define NaN std::numeric_limits<double>::quiet_NaN()
 
 using namespace WTF;
diff --git a/src/3rdparty/javascriptcore/JavaScriptCore/wtf/dtoa.cpp b/src/3rdparty/javascriptcore/JavaScriptCore/wtf/dtoa.cpp
index fe65042599dd4a282ee6882c3dd23837e12b1f96..97c6c8f5ab50ad59f73c04e72729848954ef6df4 100644
--- a/src/3rdparty/javascriptcore/JavaScriptCore/wtf/dtoa.cpp
+++ b/src/3rdparty/javascriptcore/JavaScriptCore/wtf/dtoa.cpp
@@ -147,12 +147,13 @@
 #include <wtf/AlwaysInline.h>
 #include <wtf/Assertions.h>
 #include <wtf/FastMalloc.h>
-#include <wtf/MathExtras.h>
 #include <wtf/Vector.h>
 #include <wtf/Threading.h>
 
 #include <stdio.h>
 
+#include <wtf/MathExtras.h>
+
 #if COMPILER(MSVC)
 #pragma warning(disable: 4244)
 #pragma warning(disable: 4245)