Some code cleanup to make things compilable in clang

This commit is contained in:
Ingo Ruhnke 2010-06-01 12:20:46 +02:00
parent bfc8e79527
commit 7986b8c051
4 changed files with 10 additions and 7 deletions

View file

@ -28,8 +28,11 @@
#include "uinput_deviceid.hpp"
#include "command_line_options.hpp"
// See http://stackoverflow.com/questions/303562/c-format-macro-inline-ostringstream
#define RAISE_EXCEPTION(x) throw std::runtime_error(static_cast<std::ostringstream&>(std::ostringstream().seekp(0, std::ios_base::cur) << x).str())
#define RAISE_EXCEPTION(x) do { \
std::ostringstream kiJk8f08d4oMX; \
kiJk8f08d4oMX << x; \
throw std::runtime_error(kiJk8f08d4oMX.str()); \
} while(0)
CommandLineOptions* command_line_options = 0;

View file

@ -33,9 +33,9 @@
#include "xboxdrv.hpp"
#include "xpad_device.hpp"
class Xbox360Msg;
class Xbox360GuitarMsg;
class XboxMsg;
struct Xbox360Msg;
struct XboxMsg;
struct Xbox360GuitarMsg;
class uInput
{

View file

@ -22,7 +22,7 @@
#include "xbox_generic_controller.hpp"
class USBReadThread;
class XboxGenericMsg;
struct XboxGenericMsg;
struct XPadDevice;
/** */

View file

@ -21,7 +21,7 @@
#include <stdint.h>
class XboxGenericMsg;
struct XboxGenericMsg;
class XboxGenericController
{