From 8280074b423c9caeeb63fd39be2d79158f72dd5f Mon Sep 17 00:00:00 2001 From: Krishna Vedala <7001608+kvedala@users.noreply.github.com> Date: Sun, 5 Jul 2020 20:41:06 -0400 Subject: [PATCH] move include from namespace to global --- graphics/spirograph.cpp | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/graphics/spirograph.cpp b/graphics/spirograph.cpp index b4010807e..7e8ce21ac 100644 --- a/graphics/spirograph.cpp +++ b/graphics/spirograph.cpp @@ -25,6 +25,13 @@ #ifdef _OPENMP #include #endif +#ifdef GLUT_FOUND // this is set by CMAKE automatically, if available +#ifdef __APPLE__ +#include // include path on Macs is different +#else +#include +#endif // __APPLE__ +#endif // GLUT_FOUND /** * @namespace spirograph Functions related to spirograph.cpp @@ -108,12 +115,6 @@ void test() { } #ifdef GLUT_FOUND // this is set by CMAKE automatically, if available -#ifdef __APPLE__ -#include // include path on Macs is different -#else -#include -#endif - /** A wrapper that is not available in all GLUT implementations. */ static inline void glutBitmapString(void *font, char *message) {