include win first

This commit is contained in:
Joachim Schoeberl 2024-02-10 10:09:29 +01:00
parent 6622829e8f
commit e8a9131b31
2 changed files with 20 additions and 18 deletions

View File

@ -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 <afxwin.h>
# include <afxmt.h>
# endif // MSVC_EXPRESS
# endif
# include <windows.h>
# undef WIN32_LEAN_AND_MEAN
# include <winnt.h>
#else // Not using MC VC++
#endif

View File

@ -1,3 +1,23 @@
/*** Windows headers ***/
#ifdef _MSC_VER
# define WIN32_LEAN_AND_MEAN
# ifndef NO_PARALLEL_THREADS
# ifdef MSVC_EXPRESS
# else
# include <afxwin.h>
# include <afxmt.h>
# endif // MSVC_EXPRESS
# endif
# include <windows.h>
# undef WIN32_LEAN_AND_MEAN
# include <winnt.h>
#else // Not using MC VC++
#endif
#include <mystdlib.h>
// #include <incopengl.hpp>
#include <inctcl.hpp>