mirror of
https://github.com/halpz/re3.git
synced 2025-07-19 22:28:13 +00:00
make building with Codewarrior 7 possible
This commit is contained in:
@ -17,7 +17,11 @@ enum eWinVersion
|
||||
// As long as WITHWINDOWS isn't defined / <Windows.h> isn't included, we only need type definitions so let's include <IntSafe.h>.
|
||||
// NOTE: It's perfectly fine to include <Windows.h> here, but it can increase build size and time in *some* conditions, and maybe substantially in future if we'll use crossplatform.h more.
|
||||
#ifndef _INC_WINDOWS
|
||||
#include <IntSafe.h>
|
||||
#ifndef __MWERKS__
|
||||
#include <IntSafe.h>
|
||||
#else
|
||||
#include <Windows.h>
|
||||
#endif
|
||||
#endif
|
||||
#if defined RW_D3D9 || defined RWLIBS
|
||||
#include "win.h"
|
||||
@ -114,6 +118,7 @@ struct SYSTEMTIME {
|
||||
|
||||
void GetLocalTime_CP(SYSTEMTIME* out);
|
||||
#define GetLocalTime GetLocalTime_CP
|
||||
|
||||
#define OutputDebugString(s) re3_debug("[DBG-2]: %s\n",s)
|
||||
#endif
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
#if defined RW_D3D9 || defined RWLIBS
|
||||
#if defined RW_D3D9 || defined RWLIBS || defined __MWERKS__
|
||||
|
||||
#define _WIN32_WINDOWS 0x0500
|
||||
#define WINVER 0x0500
|
||||
@ -19,6 +19,10 @@
|
||||
#pragma warning( push )
|
||||
#pragma warning( disable : 4005)
|
||||
|
||||
#ifdef __MWERKS__
|
||||
#define MAPVK_VK_TO_CHAR (2) // this is missing from codewarrior win32 headers - but it gets used ... how?
|
||||
#endif
|
||||
|
||||
#include <ddraw.h>
|
||||
#include <DShow.h>
|
||||
#pragma warning( pop )
|
||||
|
Reference in New Issue
Block a user