Fix Device Kit build in debug mode.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33110 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -9,6 +9,10 @@
|
|||||||
#include <OS.h>
|
#include <OS.h>
|
||||||
#include <SupportDefs.h>
|
#include <SupportDefs.h>
|
||||||
|
|
||||||
|
#if DEBUG
|
||||||
|
#include <stdio.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
class BList;
|
class BList;
|
||||||
class BString;
|
class BString;
|
||||||
class _BJoystickTweaker;
|
class _BJoystickTweaker;
|
||||||
|
|||||||
@@ -11,6 +11,10 @@
|
|||||||
#include <List.h>
|
#include <List.h>
|
||||||
#include <Entry.h>
|
#include <Entry.h>
|
||||||
|
|
||||||
|
#if DEBUG
|
||||||
|
#include <stdio.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
#define DEVICEPATH "/dev/joystick/"
|
#define DEVICEPATH "/dev/joystick/"
|
||||||
#define JOYSTICKPATH "/boot/home/config/settings/joysticks/"
|
#define JOYSTICKPATH "/boot/home/config/settings/joysticks/"
|
||||||
|
|
||||||
|
|||||||
@@ -31,10 +31,10 @@ LOG(const char *fmt, ...)
|
|||||||
va_start(ap, fmt);
|
va_start(ap, fmt);
|
||||||
vsprintf(buf, fmt, ap);
|
vsprintf(buf, fmt, ap);
|
||||||
va_end(ap);
|
va_end(ap);
|
||||||
fputs(buf, BJoystick::sLogFile); fflush(BJoystick::sLogFile);
|
fputs(buf, _BJoystickTweaker::sLogFile); fflush(_BJoystickTweaker::sLogFile);
|
||||||
}
|
}
|
||||||
# define LOG_ERR(text...) LOG(text)
|
# define LOG_ERR(text...) LOG(text)
|
||||||
FILE *BJoystick::sLogFile = NULL;
|
FILE *_BJoystickTweaker::sLogFile = NULL;
|
||||||
#else
|
#else
|
||||||
# define LOG(text...)
|
# define LOG(text...)
|
||||||
# define LOG_ERR(text...) fprintf(stderr, text)
|
# define LOG_ERR(text...) fprintf(stderr, text)
|
||||||
@@ -184,7 +184,7 @@ _BJoystickTweaker::_BuildFromJoystickDesc(char *string, _joystick_info* info)
|
|||||||
str.RemoveFirst("num_sticks = ");
|
str.RemoveFirst("num_sticks = ");
|
||||||
info->num_sticks = atoi(str.String());
|
info->num_sticks = atoi(str.String());
|
||||||
} else {
|
} else {
|
||||||
LOG("Path = %s\n", str->String());
|
LOG("Path = %s\n", str.String());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user