]> git.saurik.com Git - wxWidgets.git/blobdiff - src/osx/core/hid.cpp
Make wxListBox sort in a case insensitive way, fixes #12352: Incorrect sort order...
[wxWidgets.git] / src / osx / core / hid.cpp
index 2a35960274f03bd520af963fa964bfb8ae95a590..0f00fca27555df3c58219d6fd883de7e065728e1 100644 (file)
@@ -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();
         }
 };