X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/9a83f860948059b0273b5cc6d9e43fadad3ebfca..b236f090ed76944de442c06ff7d13e7cf87d9a16:/src/osx/core/hid.cpp diff --git a/src/osx/core/hid.cpp b/src/osx/core/hid.cpp index 2a35960274..2a096f714a 100644 --- a/src/osx/core/hid.cpp +++ b/src/osx/core/hid.cpp @@ -1,5 +1,5 @@ ///////////////////////////////////////////////////////////////////////////// -// Name: src/osx/corefoundation/hid.cpp +// Name: src/osx/core/hid.cpp // Purpose: DARWIN HID layer for WX Implementation // Author: Ryan Norton // Modified by: @@ -24,8 +24,7 @@ #pragma hdrstop #endif -//DARWIN _ONLY_ -#ifdef __DARWIN__ +#if wxOSX_USE_COCOA_OR_CARBON #include "wx/osx/core/hid.h" @@ -478,8 +477,8 @@ void wxHIDKeyboard::BuildCookies(CFArrayRef Array) void wxHIDKeyboard::DoBuildCookies(CFArrayRef Array) { //Now go through each possible cookie - int i, - nUsage; + int i; + long nUsage; // bool bEOTriggered = false; for (i = 0; i < CFArrayGetCount(Array); ++i) { @@ -655,7 +654,7 @@ class wxHIDModule : public wxModule { for(size_t i = 0; i < sm_keyboards.GetCount(); ++i) delete (wxHIDKeyboard*) sm_keyboards[i]; - sm_keyboards.Clear(); + sm_keyboards.Clear(); } };