windows include in python_occ

This commit is contained in:
Joachim Schoeberl 2024-02-10 09:51:19 +01:00
parent 97709fca23
commit beed254a7d
2 changed files with 36 additions and 0 deletions

View File

@ -1,6 +1,25 @@
#ifdef NG_PYTHON
#ifdef OCCGEOMETRY
// for testing: copied from mystdlib.h
#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 <memory>
#include <general/ngpython.hpp>

View File

@ -1,6 +1,23 @@
#ifdef NG_PYTHON
#ifdef OCCGEOMETRY
// for testing: copied from mystdlib.h
#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 <general/ngpython.hpp>
#include <core/python_ngcore.hpp>
#include <meshing/python_mesh.hpp>