6cf174
diff --git a/plugin/visio/VisioGraphic.cpp b/plugin/visio/VisioGraphic.cpp
6cf174
index 303eac0..14e377c 100644
6cf174
--- a/plugin/visio/VisioGraphic.cpp
6cf174
+++ b/plugin/visio/VisioGraphic.cpp
6cf174
@@ -29,6 +29,8 @@
6cf174
 #define isfinite(x) finite(x)
6cf174
 #endif
6cf174
 
6cf174
+#include <cstdlib>
6cf174
+
6cf174
 #include "VisioGraphic.h"
6cf174
 
6cf174
 #include "gvcjob.h"
6cf174
diff --git a/plugin/visio/VisioText.cpp b/plugin/visio/VisioText.cpp
6cf174
index 635806c..3c6441a 100644
6cf174
--- a/plugin/visio/VisioText.cpp
6cf174
+++ b/plugin/visio/VisioText.cpp
6cf174
@@ -17,6 +17,7 @@
6cf174
 
6cf174
 #include "gvcjob.h"
6cf174
 #include "gvio.h"
6cf174
+#include <cstdlib>
6cf174
 #include <string.h>
6cf174
 
6cf174
 extern "C" char *xml_string(char* str);