Skip to content

Commit

Permalink
Merge pull request #2914 from MRtrix3/fix_msys2_compilation_minimise_…
Browse files Browse the repository at this point in the history
…windowsh

OpenGL: Minimise what is imported by windows.h
  • Loading branch information
Lestropie authored May 23, 2024
2 parents 24ddae9 + 961eeb2 commit eac5823
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/gui/opengl/gl_core_3_3.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,17 @@
* For more details, see http://www.mrtrix.org/.
*/

#if defined(_WIN32)
#define WIN32_LEAN_AND_MEAN
#define NOSERVICE
#define NOMCX
#define NOIME
#ifndef NOMINMAX
#define NOMINMAX
#endif
#include <windows.h>
#endif

#include "gui/opengl/gl_core_3_3.h"
#include <algorithm>
#include <cstddef>
Expand Down

0 comments on commit eac5823

Please sign in to comment.