mirror of
https://port.numenaute.org/aleajactaest/khanat-opennel-code.git
synced 2024-12-27 11:20:54 +00:00
Fixed: Some Windows.h inclusions
This commit is contained in:
parent
78bc0fb0d7
commit
b0c27a92ce
5 changed files with 24 additions and 2 deletions
|
@ -22,8 +22,9 @@
|
|||
#include <vector>
|
||||
|
||||
#ifdef NL_OS_WINDOWS
|
||||
# define NOMINMAX
|
||||
# include <windows.h>
|
||||
struct HINSTANCE__;
|
||||
typedef struct HINSTANCE__ *HINSTANCE;
|
||||
typedef HINSTANCE HMODULE; /* HMODULEs can be used in place of HINSTANCEs */
|
||||
#else
|
||||
# include <dlfcn.h>
|
||||
#endif
|
||||
|
|
|
@ -42,6 +42,20 @@ namespace NLMISC
|
|||
class CWindowDisplayer;
|
||||
}
|
||||
|
||||
#if defined(NL_OS_WINDOWS) && defined(_WINDOWS)
|
||||
#ifndef WINAPI
|
||||
#define WINAPI __stdcall
|
||||
#endif
|
||||
#ifndef APIENTRY
|
||||
#define APIENTRY WINAPI
|
||||
#endif
|
||||
|
||||
struct HINSTANCE__;
|
||||
typedef struct HINSTANCE__ *HINSTANCE;
|
||||
|
||||
typedef char CHAR;
|
||||
typedef CHAR *LPSTR;
|
||||
#endif
|
||||
|
||||
namespace NLNET
|
||||
{
|
||||
|
|
|
@ -55,6 +55,7 @@
|
|||
|
||||
#ifdef NL_OS_WINDOWS
|
||||
#define NOMINMAX
|
||||
#include <WinSock2.h>
|
||||
#include <windows.h>
|
||||
#endif
|
||||
|
||||
|
|
|
@ -22,6 +22,10 @@
|
|||
#include "source_fmod.h"
|
||||
#include "buffer_fmod.h"
|
||||
|
||||
#ifdef NL_OS_WINDOWS
|
||||
#include <Windows.h>
|
||||
#endif
|
||||
|
||||
using namespace std;
|
||||
using namespace NLMISC;
|
||||
|
||||
|
|
|
@ -34,6 +34,8 @@ using namespace std;
|
|||
|
||||
#ifdef _MSC_VER
|
||||
|
||||
#include <Windows.h>
|
||||
|
||||
/** A special stream buffer that output in the 'output debug string' feature of windows.
|
||||
*/
|
||||
class CDebugOutput : public streambuf
|
||||
|
|
Loading…
Reference in a new issue