summaryrefslogtreecommitdiff
path: root/src/openscad.cc
diff options
context:
space:
mode:
authorDon Bright <hugh.m.bright@gmail.com>2011-09-13 01:45:32 (GMT)
committerDon Bright <hugh.m.bright@gmail.com>2011-09-13 01:45:32 (GMT)
commitc9fdfb7db4de33179db0316b102217f80c3dc16d (patch)
treee7e0e2450b6a7a084dc2eb745a1307288598c913 /src/openscad.cc
parent5ac9162f1c67fd21737ead11d7ebc638bf4eef5f (diff)
fix intmax_t problem on older windows visual studio
Diffstat (limited to 'src/openscad.cc')
-rw-r--r--src/openscad.cc7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/openscad.cc b/src/openscad.cc
index fd74de4..cb3a18d 100644
--- a/src/openscad.cc
+++ b/src/openscad.cc
@@ -42,6 +42,13 @@
#include <fstream>
#ifdef ENABLE_CGAL
+#ifdef _MSC_VER
+// see http://en.wikipedia.org/wiki/Stdint.h
+// and http://www.mpfr.org/mpfr-2.4.2/#stdint
+#include <boost/cstdint.hpp>
+using boost::intmax_t;
+using boost::uintmax_t;
+#endif
#include "CGAL_Nef_polyhedron.h"
#include <CGAL/assertions_behaviour.h>
#include "CGALEvaluator.h"
contact: Jan Huwald // Impressum