More CXX_BUILD fixes

This commit is contained in:
Twinaphex 2015-06-25 17:40:09 +02:00
parent 1b34dd4ce0
commit 227c986143
2 changed files with 4 additions and 4 deletions

View File

@ -257,8 +257,8 @@ static CGSSurfaceID attach_gl_context_to_window(CGLContextObj glCtx,
/* FIXME/TODO - CGWindowListCopyWindowInfo was introduced on OSX 10.5,
* find alternative for lower versions. */
wins = CGWindowListCopyWindowInfo(kCGWindowListOptionIncludingWindow, wid); /* expect one result only */
win = CFArrayGetValueAtIndex(wins, 0);
bnd = CFDictionaryGetValue(win, kCGWindowBounds);
win = (CFDictionaryRef)CFArrayGetValueAtIndex(wins, 0);
bnd = (CFDictionaryRef)CFDictionaryGetValue(win, kCGWindowBounds);
CFNumberGetValue(CFDictionaryGetValue(bnd, CFSTR("Width")),
kCFNumberFloat64Type, &w);
CFNumberGetValue(CFDictionaryGetValue(bnd, CFSTR("Height")),

View File

@ -230,7 +230,7 @@ static void iohidmanager_hid_device_remove(void *data, IOReturn result, void* se
static int32_t iohidmanager_hid_device_get_int_property(IOHIDDeviceRef device, CFStringRef key)
{
int32_t value;
CFNumberRef ref = IOHIDDeviceGetProperty(device, key);
CFNumberRef ref = (CFNumberRef)IOHIDDeviceGetProperty(device, key);
if (ref)
{
@ -256,7 +256,7 @@ static uint16_t iohidmanager_hid_device_get_product_id(IOHIDDeviceRef device)
static void iohidmanager_hid_device_get_product_string(IOHIDDeviceRef device, char *buf, size_t len)
{
CFStringRef ref = IOHIDDeviceGetProperty(device, CFSTR(kIOHIDProductKey));
CFStringRef ref = (CFStringRef)IOHIDDeviceGetProperty(device, CFSTR(kIOHIDProductKey));
if (ref)
CFStringGetCString(ref, buf, len, kCFStringEncodingUTF8);