From 6cb744fecbe1195d9b833be86c53cc358d15e5f1 Mon Sep 17 00:00:00 2001 From: Ingo Weinhold Date: Wed, 25 Nov 2009 23:44:43 +0000 Subject: [PATCH] Fixed debug build. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@34266 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/kits/device/Joystick.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/kits/device/Joystick.cpp b/src/kits/device/Joystick.cpp index 430ea494fa..e9d338a73e 100644 --- a/src/kits/device/Joystick.cpp +++ b/src/kits/device/Joystick.cpp @@ -21,6 +21,8 @@ #if DEBUG +static FILE *sLogFile = NULL; + inline void LOG(const char *fmt, ...) { @@ -29,13 +31,11 @@ LOG(const char *fmt, ...) va_start(ap, fmt); vsprintf(buf, fmt, ap); va_end(ap); - fputs(buf, BJoystick::sLogFile); fflush(BJoystick::sLogFile); + fputs(buf, sLogFile); fflush(sLogFile); } # define LOG_ERR(text...) LOG(text) -static FILE *sLogFile = NULL; - #else # define LOG(text...) # define LOG_ERR(text...) fprintf(stderr, text)