From e8a9131b3128fdcd1e12577f112ecdd2d1cd74b0 Mon Sep 17 00:00:00 2001 From: Joachim Schoeberl Date: Sat, 10 Feb 2024 10:09:29 +0100 Subject: [PATCH] include win first --- libsrc/visualization/visual.hpp | 18 ------------------ libsrc/visualization/visualpkg.cpp | 20 ++++++++++++++++++++ 2 files changed, 20 insertions(+), 18 deletions(-) diff --git a/libsrc/visualization/visual.hpp b/libsrc/visualization/visual.hpp index 5bcaa840..032838ca 100644 --- a/libsrc/visualization/visual.hpp +++ b/libsrc/visualization/visual.hpp @@ -17,24 +17,6 @@ Visualization // #define PARALLELGL // #endif -/*** Windows headers ***/ -#ifdef _MSC_VER -# define WIN32_LEAN_AND_MEAN -# ifndef NO_PARALLEL_THREADS -# ifdef MSVC_EXPRESS -# else -# include -# include -# endif // MSVC_EXPRESS -# endif -# include -# undef WIN32_LEAN_AND_MEAN -# include - -#else // Not using MC VC++ - - -#endif diff --git a/libsrc/visualization/visualpkg.cpp b/libsrc/visualization/visualpkg.cpp index 11881159..623c1638 100644 --- a/libsrc/visualization/visualpkg.cpp +++ b/libsrc/visualization/visualpkg.cpp @@ -1,3 +1,23 @@ +/*** Windows headers ***/ +#ifdef _MSC_VER +# define WIN32_LEAN_AND_MEAN +# ifndef NO_PARALLEL_THREADS +# ifdef MSVC_EXPRESS +# else +# include +# include +# endif // MSVC_EXPRESS +# endif +# include +# undef WIN32_LEAN_AND_MEAN +# include + +#else // Not using MC VC++ + + +#endif + + #include // #include #include