diff --git a/lib/symboldatabase.cpp b/lib/symboldatabase.cpp
index d59789236..3604d517f 100644
--- a/lib/symboldatabase.cpp
+++ b/lib/symboldatabase.cpp
@@ -35,6 +35,7 @@
 #include <cassert>
 #include <climits>
 #include <cstring>
+#include <limits>
 #include <iomanip>
 #include <iostream>
 #include <unordered_map>
