Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

Fix for mingw compilation of haptic subsystem by Alam.

  • Loading branch information
bobbens committed Aug 25, 2008
1 parent 13848b1 commit f251a7ba336bc8c29c5e3ffe62e891f0e75f8b3d

File 2 of 4 in f251a7b

@@ -34,11 +34,11 @@

#define DIRECTINPUT_VERSION 0x0700 /* Need at least DirectX 7 for dwStartDelay */
#include <dinput.h>
#include <dxerr.h>
#include <dxerr8.h>
#ifdef _MSC_VER
# pragma comment (lib, "dinput8.lib")
# pragma comment (lib, "dxguid.lib")
# pragma comment (lib, "dxerr.lib")
# pragma comment (lib, "dxerr8.lib")
#endif /* _MSC_VER */

/* an ISO hack for VisualC++ */
@@ -118,8 +118,8 @@ static void
DI_SetError(const char *str, HRESULT err)
{
SDL_SetError( "Haptic: %s - %s: %s", str,
DXGetErrorString(err),
DXGetErrorDescription(err));
DXGetErrorString8A(err),
DXGetErrorDescription8A(err));
}


0 comments on commit f251a7b

Please sign in to comment.