Simplify OpenCL compile-time detection on OS X.

Turn wiiuse io_osx.m into Objective-C++.


git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@6398 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
Soren Jorvang
2010-11-13 20:02:01 +00:00
parent a913295d70
commit 02edf66b49
15 changed files with 32 additions and 95 deletions

View File

@ -45,10 +45,9 @@
#include <Winsock2.h>
#endif
#include "definitions.h"
#include "Common.h"
#include "wiiuse_internal.h"
static int g_banner = 1;
/**
@ -301,7 +300,7 @@ int wiiuse_write_data(struct wiimote_t* wm, unsigned int addr, byte* data, byte
#endif
/* the offset is in big endian */
*(int*)(buf) = BIG_ENDIAN_LONG(addr);
*(int*)(buf) = Common::swap32(addr); /* XXX only if little-endian */
/* length */
*(byte*)(buf + 4) = len;