From 6230fface88a403a2c73a1c8efb6293f42dc7633 Mon Sep 17 00:00:00 2001 From: Spoike Date: Fri, 21 Oct 2005 16:29:08 +0000 Subject: [PATCH] in an evil twist of fate, lets only allow dinput7 in msvc - which allows gcc's dinput5 libraries to be usable. git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@1528 fc73d0e0-1445-4013-8a0c-d673dee63da5 --- engine/client/in_win.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/engine/client/in_win.c b/engine/client/in_win.c index 125af74d4..f555a4e14 100644 --- a/engine/client/in_win.c +++ b/engine/client/in_win.c @@ -31,12 +31,15 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. #endif #ifndef NODIRECTX -#include #ifdef _MSC_VER #pragma comment (lib, "dxguid.lib") +#else +#define DIRECTINPUT_VERSION 0x0500 #endif +#include + #define DINPUT_BUFFERSIZE 16 #define iDirectInputCreate(a,b,c,d) pDirectInputCreate(a,b,c,d)