Define WIN32_LEAN_AND_MEAN when importing windows.h

This way, when preprocessing, only the relevant windows API structures
will be generated.
This commit is contained in:
Joshua Peisach 2023-09-08 14:18:44 -04:00
parent e7cdfa76dd
commit 33048db81a
No known key found for this signature in database
GPG Key ID: 41C3D4189AFEDB5A
8 changed files with 32 additions and 0 deletions

View File

@ -1,3 +1,7 @@
#ifndef WIN32_LEAN_AND_MEAN
#define WIN32_LEAN_AND_MEAN
#endif
#include <windows.h> #include <windows.h>
// OFFSET: LEGO1 0x10091ee0 // OFFSET: LEGO1 0x10091ee0

View File

@ -1,6 +1,10 @@
#ifndef MXCRITICALSECTION_H #ifndef MXCRITICALSECTION_H
#define MXCRITICALSECTION_H #define MXCRITICALSECTION_H
#ifndef WIN32_LEAN_AND_MEAN
#define WIN32_LEAN_AND_MEAN
#endif
#include <windows.h> #include <windows.h>
class MxCriticalSection class MxCriticalSection

View File

@ -2,6 +2,10 @@
#ifndef MXDIRECTDRAW_H #ifndef MXDIRECTDRAW_H
#define MXDIRECTDRAW_H #define MXDIRECTDRAW_H
#ifndef WIN32_LEAN_AND_MEAN
#define WIN32_LEAN_AND_MEAN
#endif
#include <ddraw.h> #include <ddraw.h>
#include <windows.h> #include <windows.h>

View File

@ -1,6 +1,10 @@
#ifndef MXIOINFO_H #ifndef MXIOINFO_H
#define MXIOINFO_H #define MXIOINFO_H
#ifndef WIN32_LEAN_AND_MEAN
#define WIN32_LEAN_AND_MEAN
#endif
#include <windows.h> #include <windows.h>
#include <mmsystem.h> #include <mmsystem.h>

View File

@ -1,6 +1,10 @@
#ifndef MXOMNICREATEPARAM_H #ifndef MXOMNICREATEPARAM_H
#define MXOMNICREATEPARAM_H #define MXOMNICREATEPARAM_H
#ifndef WIN32_LEAN_AND_MEAN
#define WIN32_LEAN_AND_MEAN
#endif
#include <windows.h> #include <windows.h>
#include "mxomnicreateflags.h" #include "mxomnicreateflags.h"

View File

@ -1,6 +1,10 @@
#ifndef MX_SEMAPHORE_H #ifndef MX_SEMAPHORE_H
#define MX_SEMAPHORE_H #define MX_SEMAPHORE_H
#ifndef WIN32_LEAN_AND_MEAN
#define WIN32_LEAN_AND_MEAN
#endif
#include "mxtypes.h" #include "mxtypes.h"
#include <windows.h> #include <windows.h>

View File

@ -1,6 +1,10 @@
#ifndef MXTIMER_H #ifndef MXTIMER_H
#define MXTIMER_H #define MXTIMER_H
#ifndef WIN32_LEAN_AND_MEAN
#define WIN32_LEAN_AND_MEAN
#endif
#include "mxcore.h" #include "mxcore.h"
// VTABLE 0x100dc0e0 // VTABLE 0x100dc0e0

View File

@ -1,6 +1,10 @@
#ifndef MXVIDEOPARAMFLAGS_H #ifndef MXVIDEOPARAMFLAGS_H
#define MXVIDEOPARAMFLAGS_H #define MXVIDEOPARAMFLAGS_H
#ifndef WIN32_LEAN_AND_MEAN
#define WIN32_LEAN_AND_MEAN
#endif
#include <windows.h> #include <windows.h>
// Must be union with struct for match. // Must be union with struct for match.