diff --git a/include/gl_utils.h b/include/gl_utils.h index 258d25df0b..4b5d483902 100644 --- a/include/gl_utils.h +++ b/include/gl_utils.h @@ -24,7 +24,7 @@ #ifndef GL_UTILS_H #define GL_UTILS_H -#ifndef _WIN32 +#ifdef __linux__ #include #endif @@ -42,7 +42,7 @@ public: { /// This routine is written for Linux only. The equivalent functions under Windows would /// include and call wglSwapIntervalEXT - #ifndef _WIN32 + #ifdef __linux__ Display *dpy = glXGetCurrentDisplay(); GLXDrawable drawable = glXGetCurrentDrawable();