--- a/OS/IOCondition.cpp
+++ b/OS/IOCondition.cpp
@@ -1,5 +1,6 @@
 #include "stdafx.h"
 #include "IOCondition.h"
+#include <limits>
 
 #ifdef POSIX
 // NOTE: This does not exist on all POSIX systems (eg. MacOS)
--- a/Gui/App.cpp
+++ b/Gui/App.cpp
@@ -6,6 +6,7 @@
 #include "Defaults.h"
 #include "Core/Exception.h"
 #include "Win32Dpi.h"
+#include <limits>
 
 #if defined(POSIX)
 
--- a/Sound/Mp3Sound.cpp
+++ b/Sound/Mp3Sound.cpp
@@ -3,6 +3,7 @@
 #include "Exception.h"
 #include "Core/Convert.h"
 #include "Utils/Memory.h"
+#include <limits>
 
 namespace sound {
 
