brandonprry/rubytooth — pull request #1 by WilHall (2012-10-14 22:41:41+00:00)
Title: Fixed compile errors on OS X (Tested on 10.8.1)

There is still an issue running the example programs - appears to be an issue finding the IOBluetoothDeviceInquiry class at runtime, but I will look into that later. For now, it compiles on OS X.

----
For reference, error was:
Wils-MacBook-Pro:brandonprry-rubytooth-656e771 wil$ make
compiling bluetooth_macosx/bluetooth_macosx.m
In file included from bluetooth_macosx/bluetooth_macosx.m:4:
/usr/local/include/ruby-1.9.1/ruby/backward/rubysig.h:14:2: warning: #warning rubysig.h is obsolete
bluetooth_macosx/bluetooth_macosx.m: In function ‘bt_devices_scan’:
bluetooth_macosx/bluetooth_macosx.m:54: warning: ‘BluetoothDeviceScanner’ may not respond to ‘-foundDevices’
bluetooth_macosx/bluetooth_macosx.m:54: warning: (Messages without a matching method signature
bluetooth_macosx/bluetooth_macosx.m:54: warning: will be assumed to return ‘id’ and accept
bluetooth_macosx/bluetooth_macosx.m:54: warning: ‘...’ as arguments.)
bluetooth_macosx/bluetooth_macosx.m:54: warning: return makes integer from pointer without a cast
bluetooth_macosx/bluetooth_macosx.m: In function ‘-[BluetoothDeviceScanner deviceInquiryDeviceFound:device:]’:
bluetooth_macosx/bluetooth_macosx.m:62: error: ‘deviceAddressString’ undeclared (first use in this function)
bluetooth_macosx/bluetooth_macosx.m:62: error: (Each undeclared identifier is reported only once
bluetooth_macosx/bluetooth_macosx.m:62: error: for each function it appears in.)
bluetooth_macosx/bluetooth_macosx.m:70: error: ‘inDevice’ undeclared (first use in this function)
bluetooth_macosx/bluetooth_macosx.m:70: warning: ISO C90 forbids mixed declarations and code
bluetooth_macosx/bluetooth_macosx.m:75: warning: ISO C90 forbids mixed declarations and code
make: *** [bluetooth_macosx.o] Error 1