diff --git a/Source/Script/MinGW/nrage.cmd b/Source/Script/MinGW/nrage.cmd index 5dcb9f59a..c095397ac 100644 --- a/Source/Script/MinGW/nrage.cmd +++ b/Source/Script/MinGW/nrage.cmd @@ -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 diff --git a/Source/nragev20/Debug.h b/Source/nragev20/Debug.h index 397e671b3..9ac985522 100644 --- a/Source/nragev20/Debug.h +++ b/Source/nragev20/Debug.h @@ -24,7 +24,7 @@ #ifndef _DEBUG_H_ #define _DEBUG_H_ -#include +#include #ifdef _DEBUG diff --git a/Source/nragev20/XInputController.cpp b/Source/nragev20/XInputController.cpp index 82f2a4bef..eaff11e28 100644 --- a/Source/nragev20/XInputController.cpp +++ b/Source/nragev20/XInputController.cpp @@ -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 +#include + #include "XInputController.h" #include "FileAccess.h" #include diff --git a/Source/nragev20/XInputController.h b/Source/nragev20/XInputController.h index f9ef13361..a03d3b201 100644 --- a/Source/nragev20/XInputController.h +++ b/Source/nragev20/XInputController.h @@ -28,9 +28,6 @@ #ifndef _XINPUTCONTROLLER_H #define _XINPUTCONTROLLER_H -//code from http://msdn.microsoft.com/en-us/library/ee417014(VS.85).aspx -#include -#include //#include <-- only needed for SAFE_RELEASE(x) /* fixes undefined FILE, etc. type errors in MSVC 2010 build -- cxd4 */ diff --git a/Source/nragev20/commonIncludes.h b/Source/nragev20/commonIncludes.h index 85c2aefd9..aee95387f 100644 --- a/Source/nragev20/commonIncludes.h +++ b/Source/nragev20/commonIncludes.h @@ -29,7 +29,6 @@ #include "settings.h" #include -#include #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_