Skip to content

Commit

Permalink
Fix yet another extra token after #endif
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolas-cellier-aka-nice committed Nov 18, 2016
1 parent ea0cf9b commit 50be193
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions platforms/Mac OS/plugins/JoystickTabletPlugin/HID_Utilities.c
Expand Up @@ -65,7 +65,7 @@ static pRecDevice hid_DisposeDevice (pRecDevice ppDevice);
static IONotificationPortRef gNotifyPort;
static io_iterator_t gAddedIter;
static CFRunLoopRef gRunLoop;
#endif USE_NOTIFICATIONS
#endif //USE_NOTIFICATIONS

// for element retrieval
static pRecDevice gCurrentGetDevice = NULL;
Expand Down Expand Up @@ -276,7 +276,7 @@ static void hid_AddElement (CFTypeRef refElement, pRecElement * ppElementCurrent
#if 0
else
HIDReportError ("CFNumberGetValue error when getting value for refUsage or refUsagePage.");
#endif 0
#endif //0
}
else // collection
pElement = (pRecElement) malloc (sizeof (recElement));
Expand Down Expand Up @@ -732,7 +732,7 @@ static void hid_AddDevices (void *refCon, io_iterator_t iterator)
HIDReportErrorNum ("hid_AddDevices: IOServiceAddInterestNotification error: x0%8.8lX.", result);
#else
result = (*(IOHIDDeviceInterface**)pNewDevice->interface)->setRemovalCallback (pNewDevice->interface, hid_RemovalCallbackFunction,pNewDeviceAt,0);
#endif USE_NOTIFICATIONS
#endif //USE_NOTIFICATIONS

// release the device object, it is no longer needed
result = IOObjectRelease (ioHIDDeviceObject);
Expand Down Expand Up @@ -799,7 +799,7 @@ static pRecDevice hid_DisposeDevice (pRecDevice pDevice)
if (kIOReturnSuccess != result)
HIDReportErrorNum ("hid_DisposeDevice: IOObjectRelease error: 0x%8.8X.", result);
}
#endif USE_NOTIFICATIONS
#endif //USE_NOTIFICATIONS

// remove this device from the device list
if (gpDeviceList == pDevice) // head of list?
Expand Down

0 comments on commit 50be193

Please sign in to comment.