Remove windows.h include where possible.

This commit is contained in:
Hochsteger, Matthias 2024-02-12 11:57:54 +01:00
parent 18262a526d
commit dfaf270670
4 changed files with 10 additions and 8 deletions

View File

@ -5,6 +5,10 @@
#include <mystdlib.h>
#include <mydefs.hpp>
#ifdef WIN32
#define WIN32_LEAN_AND_MEAN
#include <windows.h>
#endif
# ifdef __APPLE__
#define GL_SILENCE_DEPRECATION

View File

@ -1,3 +1,8 @@
#ifdef WIN32
#define WIN32_LEAN_AND_MEAN
#include <windows.h>
#endif
#include <tcl.h>
#include <tk.h>

View File

@ -59,7 +59,7 @@ namespace metis { extern "C" {
// # include <afxmt.h>
# endif // MSVC_EXPRESS
# endif
# include <windows.h>
// # include <windows.h>
# undef WIN32_LEAN_AND_MEAN
// # include <winnt.h>
#else // Not using MC VC++

View File

@ -9,13 +9,6 @@
#include "../include/opti.hpp"
/*** Windows headers ***/
#ifdef _MSC_VER
# define WIN32_LEAN_AND_MEAN
# include <windows.h>
# undef WIN32_LEAN_AND_MEAN
#endif
namespace netgen
{
// extern int printmessage_importance;