From 4dba8a4e27db04c4edec973115bc1288a039156b Mon Sep 17 00:00:00 2001 From: Charles Davis Date: Tue, 16 Feb 2016 13:51:19 -0700 Subject: [PATCH] dinput: Don't define a debug channel when it isn't used. Signed-off-by: Charles Davis Signed-off-by: Alexandre Julliard --- dlls/dinput/joystick_linux.c | 4 ++-- dlls/dinput/joystick_linuxinput.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/dlls/dinput/joystick_linux.c b/dlls/dinput/joystick_linux.c index 9921a28d7ba..261cee1ffc8 100644 --- a/dlls/dinput/joystick_linux.c +++ b/dlls/dinput/joystick_linux.c @@ -65,10 +65,10 @@ #include "device_private.h" #include "joystick_private.h" -WINE_DEFAULT_DEBUG_CHANNEL(dinput); - #ifdef HAVE_LINUX_22_JOYSTICK_API +WINE_DEFAULT_DEBUG_CHANNEL(dinput); + #define JOYDEV_NEW "/dev/input/js" #define JOYDEV_OLD "/dev/js" #define JOYDEVDRIVER " (js)" diff --git a/dlls/dinput/joystick_linuxinput.c b/dlls/dinput/joystick_linuxinput.c index 4b4d69cfd12..86f12d05df7 100644 --- a/dlls/dinput/joystick_linuxinput.c +++ b/dlls/dinput/joystick_linuxinput.c @@ -63,10 +63,10 @@ #include "device_private.h" #include "joystick_private.h" -WINE_DEFAULT_DEBUG_CHANNEL(dinput); - #ifdef HAS_PROPER_HEADER +WINE_DEFAULT_DEBUG_CHANNEL(dinput); + #define EVDEVPREFIX "/dev/input/event" #define EVDEVDRIVER " (event)"