Fixed some typos preventing SDL from compiling with the haptic dummy driver. gsoc2008_force_feedback
authorEdgar Simo <bobbens@gmail.com>
Wed, 09 Jul 2008 16:33:51 +0000
branchgsoc2008_force_feedback
changeset 2508 f23cee9e16fc
parent 2507 8ef1d0f4d0c1
child 2509 3b54b3a97046
Fixed some typos preventing SDL from compiling with the haptic dummy driver.
configure.in
src/haptic/dummy/SDL_syshaptic.c
--- a/configure.in	Tue Jul 08 19:55:12 2008 +0000
+++ b/configure.in	Wed Jul 09 16:33:51 2008 +0000
@@ -239,7 +239,7 @@
 AC_HELP_STRING([--enable-haptic], [Enable the haptic (force feedback) subsystem [[default=yes]]]),
               , enable_haptic=yes)
 if test x$enable_haptic != xyes; then
-    AC_DEFINE(SDL_HAPTIC_DISABLE)
+    AC_DEFINE(SDL_HAPTIC_DISABLED)
 else
     SOURCES="$SOURCES $srcdir/src/haptic/*.c"
 fi
--- a/src/haptic/dummy/SDL_syshaptic.c	Tue Jul 08 19:55:12 2008 +0000
+++ b/src/haptic/dummy/SDL_syshaptic.c	Wed Jul 09 16:33:51 2008 +0000
@@ -21,7 +21,7 @@
 */
 #include "SDL_config.h"
 
-#ifdef defined(SDL_HAPTIC_DUMMY) || defined(SDL_HAPTIC_DISABLED)
+#if defined(SDL_HAPTIC_DUMMY) || defined(SDL_HAPTIC_DISABLED)
 
 #include "SDL_haptic.h"
 #include "../SDL_haptic_c.h"