diff --git a/src/gamma.c b/src/gamma.c index a7ddfcd9..945e886b 100644 --- a/src/gamma.c +++ b/src/gamma.c @@ -30,10 +30,6 @@ #include #include -#if defined(_MSC_VER) - #include -#endif - ////////////////////////////////////////////////////////////////////////// ////// GLFW internal API ////// diff --git a/src/monitor.c b/src/monitor.c index 02f7c6af..88fada04 100644 --- a/src/monitor.c +++ b/src/monitor.c @@ -31,11 +31,6 @@ #include #include -#if defined(_MSC_VER) - #include - #define strdup _strdup -#endif - // Lexical comparison function for GLFW video modes, used by qsort // diff --git a/src/win32_platform.h b/src/win32_platform.h index a265f050..968a79da 100644 --- a/src/win32_platform.h +++ b/src/win32_platform.h @@ -62,6 +62,11 @@ #define _WIN32_WINNT 0x0501 #endif +#if defined(_MSC_VER) + #include + #define strdup _strdup +#endif + #include #include #include diff --git a/src/window.c b/src/window.c index 63e76bf8..cecfd5ed 100644 --- a/src/window.c +++ b/src/window.c @@ -30,9 +30,6 @@ #include #include -#if defined(_MSC_VER) - #include -#endif // Return the maxiumum of the specified values