Windows: DynamicLib: Slim down Windows.h

This is important as it ends up being included in icsneoc.h
v0.3.0-dev
Paul Hollinsky 2022-02-24 16:36:47 -05:00
parent 6cd821be2c
commit 9e6970fd39
1 changed files with 12 additions and 0 deletions

View File

@ -1,7 +1,19 @@
#ifndef __DYNAMICLIB_WINDOWS_H_
#define __DYNAMICLIB_WINDOWS_H_
#define NOMINMAX
#ifndef WIN32_LEAN_AND_MEAN
#define LAM_DEFINED
#define WIN32_LEAN_AND_MEAN
#endif
#include <Windows.h>
#ifdef LAM_DEFINED
#undef LAM_DEFINED
#undef WIN32_LEAN_AND_MEAN
#endif
#undef NOMINMAX
#undef near
#undef far
#ifdef ICSNEOC_MAKEDLL
#define DLLExport __declspec(dllexport)