]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/mac/corefoundation/hid.h
Make everything compile with GTK_DISABLE_DEPRECATED declared.
[wxWidgets.git] / include / wx / mac / corefoundation / hid.h
index 33b01d54df3cdfecc3f3f5a7d9de5693cce8f19f..9d138c301f9be6ab456e31ad224a9d9396ef3c53 100644 (file)
 #include <IOKit/hid/IOHIDKeys.h>
 #include <Kernel/IOKit/hidsystem/IOHIDUsageTables.h>
 
-#include <mach/mach.h>
+//Darn apple - doesn't properly wrap their headers in extern "C"!
+//http://www.macosx.com/forums/archive/index.php/t-68069.html
+//Needed for codewarrior link error with mach_port_deallocate()
+extern "C" {
+#include <mach/mach_port.h>
+}
+
+#include <mach/mach.h> //this actually includes mach_port.h (see above)
 
 //Utility wrapper around CFArray
 class wxCFArray