Browse Source

[2992] Linux requires climits to use LONG_MAX and LONG_MIN

fujiwara 12 years ago
parent
commit
c16bf9a2b1
2 changed files with 2 additions and 0 deletions
  1. 1 0
      src/lib/cc/data.cc
  2. 1 0
      src/lib/cc/tests/data_unittests.cc

+ 1 - 0
src/lib/cc/data.cc

@@ -25,6 +25,7 @@
 #include <string>
 #include <sstream>
 #include <cerrno>
+#include <climits>
 
 #include <boost/algorithm/string.hpp> // for iequals
 

+ 1 - 0
src/lib/cc/tests/data_unittests.cc

@@ -15,6 +15,7 @@
 #include <gtest/gtest.h>
 #include <boost/foreach.hpp>
 #include <boost/assign/std/vector.hpp>
+#include <climits>
 
 #include <cc/data.h>