Merge pull request #39 from cxd4/master
fixes to linking (and compiling N-Rage) in VS2010
This commit is contained in:
commit
0862430c67
|
@ -51,6 +51,7 @@
|
||||||
<Tool
|
<Tool
|
||||||
Name="VCLinkerTool"
|
Name="VCLinkerTool"
|
||||||
SubSystem="2"
|
SubSystem="2"
|
||||||
|
RandomizedBaseAddress="1"
|
||||||
FixedBaseAddress="2"
|
FixedBaseAddress="2"
|
||||||
DataExecutionPrevention="1"
|
DataExecutionPrevention="1"
|
||||||
/>
|
/>
|
||||||
|
|
|
@ -33,6 +33,9 @@
|
||||||
#include <oleauto.h>
|
#include <oleauto.h>
|
||||||
//#include <wmsstd.h> <-- only needed for SAFE_RELEASE(x)
|
//#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
|
#ifndef SAFE_RELEASE // when Windows Media Device M? is not present
|
||||||
#define SAFE_RELEASE(x) \
|
#define SAFE_RELEASE(x) \
|
||||||
if(x != NULL) \
|
if(x != NULL) \
|
||||||
|
|
Loading…
Reference in New Issue