fix osx build, and first step to get real wiimotes on osx

git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@2277 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
tmator
2009-02-16 21:12:00 +00:00
parent 82a10c9692
commit cf8220dc9c
6 changed files with 23 additions and 3 deletions

View File

@ -42,6 +42,8 @@
#ifdef _WIN32
/* windows */
#include <windows.h>
#elif defined(__APPLE__)
#include <string.h>
#else
/* nix */
#include <bluetooth/bluetooth.h>
@ -533,7 +535,11 @@ typedef struct wiimote_t {
WCONST int unid; /**< user specified id */
#ifndef WIN32
#if defined(__APPLE__)
WCONST char bdaddr[10]; /**< bt address on osx addr are string */
#else
WCONST bdaddr_t bdaddr; /**< bt address */
#endif
WCONST char bdaddr_str[18]; /**< readable bt address */
WCONST int out_sock; /**< output socket */
WCONST int in_sock; /**< input socket */