mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-01 05:38:50 +00:00
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:
parent
a913295d70
commit
02edf66b49
15 changed files with 32 additions and 95 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue