diff -up ucblogo-6.0/coms.c.inc ucblogo-6.0/coms.c
--- ucblogo-6.0/coms.c.inc 2016-07-09 19:28:01.384859616 +0200
+++ ucblogo-6.0/coms.c 2016-07-09 19:28:09.250898715 +0200
@@ -25,9 +25,9 @@ extern int check_wx_stop(int force_yield
#endif
#define WANT_EVAL_REGS 1
+#include <math.h>
#include "logo.h"
#include "globals.h"
-#include <math.h>
#ifdef HAVE_UNISTD_H
#include <unistd.h>
#endif
diff -up ucblogo-6.0/graphics.c.inc ucblogo-6.0/graphics.c
--- ucblogo-6.0/graphics.c.inc 2016-07-09 19:28:31.426008938 +0200
+++ ucblogo-6.0/graphics.c 2016-07-09 19:28:40.570054389 +0200
@@ -24,9 +24,9 @@
#endif /* WIN32 */
#define WANT_EVAL_REGS 1
+#include <math.h>
#include "logo.h"
/* #include "globals.h" has been moved further down */
-#include <math.h>
#ifdef HAVE_WX
#include "wxGraphics.h"