From dccb3f4aab3ddd6e88275625d827c5482f76cc87 Mon Sep 17 00:00:00 2001 From: mittorn Date: Wed, 9 Mar 2016 18:43:27 +0600 Subject: [PATCH] Fix mingw --- cl_dll/in_defs.h | 1 + cl_dll/input_xash3d.cpp | 11 +++++------ 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/cl_dll/in_defs.h b/cl_dll/in_defs.h index 9ab880e9..9f30b17a 100644 --- a/cl_dll/in_defs.h +++ b/cl_dll/in_defs.h @@ -17,6 +17,7 @@ #define ROLL 2 #ifdef _WIN32 +#include #else typedef struct point_s{ int x; diff --git a/cl_dll/input_xash3d.cpp b/cl_dll/input_xash3d.cpp index e1023872..69980a39 100644 --- a/cl_dll/input_xash3d.cpp +++ b/cl_dll/input_xash3d.cpp @@ -5,7 +5,6 @@ #include "keydefs.h" cvar_t *sensitivity; cvar_t *in_joystick; -#define DLLEXPORT #define PITCH 0 #define YAW 1 #define ROLL 2 @@ -208,7 +207,7 @@ void IN_Move( float frametime, usercmd_t *cmd ) ac_movecount = 0; } -extern "C" void IN_MouseEvent( int mstate ) +extern "C" void DLLEXPORT IN_MouseEvent( int mstate ) { static int mouse_oldbuttonstate; // perform button actions @@ -230,22 +229,22 @@ extern "C" void IN_MouseEvent( int mstate ) // Stubs -extern "C" void IN_ClearStates ( void ) +extern "C" void DLLEXPORT IN_ClearStates ( void ) { //gEngfuncs.Con_Printf("IN_ClearStates\n"); } -extern "C" void IN_ActivateMouse ( void ) +extern "C" void DLLEXPORT IN_ActivateMouse ( void ) { //gEngfuncs.Con_Printf("IN_ActivateMouse\n"); } -extern "C" void IN_DeactivateMouse ( void ) +extern "C" void DLLEXPORT IN_DeactivateMouse ( void ) { //gEngfuncs.Con_Printf("IN_DeactivateMouse\n"); } -extern "C" void IN_Accumulate ( void ) +extern "C" void DLLEXPORT IN_Accumulate ( void ) { //gEngfuncs.Con_Printf("IN_Accumulate\n"); }