Merge pull request #39 from cxd4/master

fixes to linking (and compiling N-Rage) in VS2010
This commit is contained in:
project64 2015-01-31 08:04:53 +11:00
commit 0862430c67
2 changed files with 4 additions and 0 deletions

View File

@ -51,6 +51,7 @@
<Tool
Name="VCLinkerTool"
SubSystem="2"
RandomizedBaseAddress="1"
FixedBaseAddress="2"
DataExecutionPrevention="1"
/>

View File

@ -33,6 +33,9 @@
#include <oleauto.h>
//#include <wmsstd.h> <-- only needed for SAFE_RELEASE(x)
/* fixes undefined FILE, etc. type errors in MSVC 2010 build -- cxd4 */
#include <stdio.h>
#ifndef SAFE_RELEASE // when Windows Media Device M? is not present
#define SAFE_RELEASE(x) \
if(x != NULL) \