diff --git a/polymer/eduke32/source/jmact/mathutil.h b/polymer/eduke32/source/jmact/mathutil.h
index 48839c2a4..8d87ffd9e 100644
--- a/polymer/eduke32/source/jmact/mathutil.h
+++ b/polymer/eduke32/source/jmact/mathutil.h
@@ -32,8 +32,6 @@ Prepared for public release: 03/21/2003 - Charlie Wiederhold, 3D Realms
 
 extern int32_t FindDistance2D(int32_t dx, int32_t dy);
 extern int32_t FindDistance3D(int32_t dx, int32_t dy, int32_t dz);
-extern int32_t FindDistance3D_HP(int32_t dx, int32_t dy, int32_t dz);
-extern int32_t ArcTangentAppx(int32_t dx, int32_t dy);
 
 #ifdef EXTERNC
 }
diff --git a/polymer/eduke32/source/macros.h b/polymer/eduke32/source/macros.h
index 7b1bfd711..1054d1876 100644
--- a/polymer/eduke32/source/macros.h
+++ b/polymer/eduke32/source/macros.h
@@ -20,6 +20,9 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
 */
 //-------------------------------------------------------------------------
 
+#ifndef EDUKE32_MACROS_H_
+#define EDUKE32_MACROS_H_
+
 // Macros, some from SW source
 
 #define ALT_IS_PRESSED ( KB_KeyPressed( sc_RightAlt ) || KB_KeyPressed( sc_LeftAlt ) )
@@ -206,3 +209,4 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
 #define T8  actor[i].t_data[7]
 #define T9  actor[i].t_data[8]
 
+#endif
diff --git a/polymer/eduke32/source/sounds_mapster32.c b/polymer/eduke32/source/sounds_mapster32.c
index 9d1bf8eaf..1bb23bfb4 100644
--- a/polymer/eduke32/source/sounds_mapster32.c
+++ b/polymer/eduke32/source/sounds_mapster32.c
@@ -32,11 +32,12 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
 #include "osd.h"
 
 #include "cache1d.h"
-#include "macros.h"
-#include "mathutil.h"
 #include "build.h"  // vec3_t
 #include "editor.h"
 
+#include "macros.h"
+#include "mathutil.h"
+
 #ifdef WIN32
 #include "winlayer.h"
 #endif