Attempt to fix windows haptic port compilation errors. gsoc2008_force_feedback
authorEdgar Simo <bobbens@gmail.com>
Sun, 03 Aug 2008 10:20:31 +0000
branchgsoc2008_force_feedback
changeset 2578 72c4ac55f73c
parent 2577 72b17d80b426
child 2579 bd2a6c70cb29
Attempt to fix windows haptic port compilation errors.
src/haptic/win32/SDL_syshaptic.c
--- a/src/haptic/win32/SDL_syshaptic.c	Thu Jul 31 17:27:32 2008 +0000
+++ b/src/haptic/win32/SDL_syshaptic.c	Sun Aug 03 10:20:31 2008 +0000
@@ -34,9 +34,9 @@
 
 #define DIRECTINPUT_VERSION 0x0700 /* Need at least DirectX 7 for dwStartDelay */
 #include <dinput.h>
-#include <dxerr9.h>          /* From DirectX SDK 9c */
+#include <dxerr.h>
 #ifdef _MSC_VER
-#   pragma comment (lib, "dxerr9.lib")
+#   pragma comment (lib, "dxerr.lib")
 #endif /* _MSC_VER */
 
     /* an ISO hack for VisualC++ */
@@ -104,8 +104,8 @@
 DI_SetError(const char *str, HRESULT err)
 {
    SDL_SetError( "Haptic: %s - %s: %s", str,
-                 DXGetErrorString9(err),
-                 DXGetErrorDescription9(err));
+                 DXGetErrorString(err),
+                 DXGetErrorDescription(err));
 }