mirror of
https://github.com/NGSolve/netgen.git
synced 2024-12-25 05:20:34 +05:00
Remove windows.h include where possible.
This commit is contained in:
parent
18262a526d
commit
dfaf270670
@ -5,6 +5,10 @@
|
|||||||
#include <mystdlib.h>
|
#include <mystdlib.h>
|
||||||
#include <mydefs.hpp>
|
#include <mydefs.hpp>
|
||||||
|
|
||||||
|
#ifdef WIN32
|
||||||
|
#define WIN32_LEAN_AND_MEAN
|
||||||
|
#include <windows.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
# ifdef __APPLE__
|
# ifdef __APPLE__
|
||||||
#define GL_SILENCE_DEPRECATION
|
#define GL_SILENCE_DEPRECATION
|
||||||
|
@ -1,3 +1,8 @@
|
|||||||
|
#ifdef WIN32
|
||||||
|
#define WIN32_LEAN_AND_MEAN
|
||||||
|
#include <windows.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
#include <tcl.h>
|
#include <tcl.h>
|
||||||
#include <tk.h>
|
#include <tk.h>
|
||||||
|
|
||||||
|
@ -59,7 +59,7 @@ namespace metis { extern "C" {
|
|||||||
// # include <afxmt.h>
|
// # include <afxmt.h>
|
||||||
# endif // MSVC_EXPRESS
|
# endif // MSVC_EXPRESS
|
||||||
# endif
|
# endif
|
||||||
# include <windows.h>
|
// # include <windows.h>
|
||||||
# undef WIN32_LEAN_AND_MEAN
|
# undef WIN32_LEAN_AND_MEAN
|
||||||
// # include <winnt.h>
|
// # include <winnt.h>
|
||||||
#else // Not using MC VC++
|
#else // Not using MC VC++
|
||||||
|
@ -9,13 +9,6 @@
|
|||||||
#include "../include/opti.hpp"
|
#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
|
namespace netgen
|
||||||
{
|
{
|
||||||
// extern int printmessage_importance;
|
// extern int printmessage_importance;
|
||||||
|
Loading…
Reference in New Issue
Block a user