diff --git a/xsdconvert/RootType.hh b/xsdconvert/RootType.hh
index 1469e4e72b2e1543140cd8a190f4d97cddc184ba..0a567734d3d01293b2d0bc27bc4d9e7ad4b90509 100644
--- a/xsdconvert/RootType.hh
+++ b/xsdconvert/RootType.hh
@@ -21,8 +21,6 @@
 #include "TTCN3Module.hh"
 #include "XMLParser.hh"
 
-#include <cmath> // for using "pow" function
-#include <cfloat>
 #include <cctype>
 #include <cerrno>
 #include <climits>
diff --git a/xsdconvert/SimpleType.cc b/xsdconvert/SimpleType.cc
index afd41519b3b89c9a0865d8de937d5220ea79b1d4..24fcbdf74c3ab308f568c64a5ed273df96f0c16b 100644
--- a/xsdconvert/SimpleType.cc
+++ b/xsdconvert/SimpleType.cc
@@ -22,6 +22,9 @@
 #include "TTCN3Module.hh"
 #include "ComplexType.hh"
 
+#include <cmath> // for using "pow" function
+#include <cfloat>
+
 extern bool g_flag_used;
 extern bool h_flag_used;