diff --git a/src/dxfdim.cc b/src/dxfdim.cc
index a241b87..8f55a2f 100644
--- a/src/dxfdim.cc
+++ b/src/dxfdim.cc
@@ -36,6 +36,8 @@
#include "mathc99.h"
#include <sstream>
+#include <stdint.h>
+
#include <boost/filesystem.hpp>
boost::unordered_map<std::string,Value> dxf_dim_cache;
boost::unordered_map<std::string,Value> dxf_cross_cache;