diff --git a/NPLib/Core/NPDetectorManager.cxx b/NPLib/Core/NPDetectorManager.cxx
index ea9ac4ddce699de79c17dccc4641f2ce77239bf1..88ffff152761d52f6ca1731c544aa2f79ea9ebc0 100644
--- a/NPLib/Core/NPDetectorManager.cxx
+++ b/NPLib/Core/NPDetectorManager.cxx
@@ -26,6 +26,7 @@
 #include <sstream>
 #include <fstream>
 #include <cstdlib>
+#include <limits>
 #include <set>
 // NPL
 #include "NPDetectorFactory.h"