Merge pull request #759 from cxd4/fix-nrage

Get N-Rage linking with MinGW 64-bit.
This commit is contained in:
zilmar 2015-11-17 13:20:12 +11:00
commit 6559d36f41
5 changed files with 19 additions and 8 deletions

View File

@ -54,8 +54,18 @@ set OBJ_LIST=^
%obj%\PakIO.o^
%obj%\FileAccess.o^
%obj%\Interface.o^
%obj%\NRagePluginV2.o
%obj%\NRagePluginV2.o^
-ldinput8^
-loleaut32^
-lole32^
-luuid^
-lcomctl32^
-mwindows^
-lcomdlg32^
-lgdi32^
%obj%\NRagePluginV2.res
ECHO Linking N-Rage objects...
%MinGW%\bin\windres.exe -o %obj%\NRagePluginV2.res -i %src%\NRagePluginV2.rc -O coff
%MinGW%\bin\g++.exe -o %obj%\PJ64_NRage.dll %OBJ_LIST% -shared -shared-libgcc
PAUSE

View File

@ -24,7 +24,7 @@
#ifndef _DEBUG_H_
#define _DEBUG_H_
#include <wtypes.h>
#include <windows.h>
#ifdef _DEBUG

View File

@ -19,6 +19,10 @@
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
//code from http://msdn.microsoft.com/en-us/library/ee417014(VS.85).aspx
#include <windows.h>
#include <wbemidl.h>
#include "XInputController.h"
#include "FileAccess.h"
#include <wchar.h>

View File

@ -28,9 +28,6 @@
#ifndef _XINPUTCONTROLLER_H
#define _XINPUTCONTROLLER_H
//code from http://msdn.microsoft.com/en-us/library/ee417014(VS.85).aspx
#include <wbemidl.h>
#include <oleauto.h>
//#include <wmsstd.h> <-- only needed for SAFE_RELEASE(x)
/* fixes undefined FILE, etc. type errors in MSVC 2010 build -- cxd4 */

View File

@ -29,7 +29,6 @@
#include "settings.h"
#include <tchar.h>
#include <wtypes.h>
#include "resource.h"
#include "Debug.h"
@ -42,7 +41,8 @@
#ifdef ARRAYSIZE
#undef ARRAYSIZE
#define ARRAYSIZE( array ) (sizeof(array) / sizeof(array[0]))
#endif //ARRAYSIZE
#endif //ARRAYSIZE
#define ARRAYSIZE(array) (sizeof(array) / sizeof((array)[0]))
#endif // #ifndef _COMMONINCLUDES_H_