summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/import.cc7
-rw-r--r--src/mainwin.cc8
-rw-r--r--src/openscad.cc7
3 files changed, 22 insertions, 0 deletions
diff --git a/src/import.cc b/src/import.cc
index f64a8f6..f1da4a0 100644
--- a/src/import.cc
+++ b/src/import.cc
@@ -36,6 +36,13 @@
#include "handle_dep.h" // handle_dep()
#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 "cgalutils.h"
#endif
diff --git a/src/mainwin.cc b/src/mainwin.cc
index 56502f2..9dacbce 100644
--- a/src/mainwin.cc
+++ b/src/mainwin.cc
@@ -86,6 +86,14 @@ using namespace boost::lambda;
#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 "CGALCache.h"
#include "CGALEvaluator.h"
#include "PolySetCGALEvaluator.h"
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