diff --git a/dxt_compress/dxt_util.h b/dxt_compress/dxt_util.h index 4dc273b91..5915a8310 100644 --- a/dxt_compress/dxt_util.h +++ b/dxt_compress/dxt_util.h @@ -30,29 +30,28 @@ #ifdef HAVE_CONFIG_H #include "config.h" #endif -#if defined HAVE_CONFIG_H && defined HAVE_MACOSX +#include "dxt_common.h" + +#ifdef HAVE_MACOSX #include #include -#include #else /* HAVE_MACOSX */ #include #include #include -#include #endif /* HAVE_MACOSX */ #include + #ifdef HAVE_GLUT +#ifdef HAVE_MACOSX +#include +extern void glutCheckLoop(void); +#else /* HAVE_MACOSX */ #include - -#include "dxt_common.h" - -/** - * Predeclaration of glutMainLoopEvent - */ -extern void -glutMainLoopEvent(void); -#endif +extern void glutMainLoopEvent(void); +#endif /* HAVE_MACOSX */ +#endif /* HAVE_GLUT */ static inline int dxt_get_size(int width, int height, enum dxt_type format) {