]> 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 3789e81ff31e7b810d997719b4a39bd5740df260..9d138c301f9be6ab456e31ad224a9d9396ef3c53 100644 (file)
 #ifndef _WX_MACCARBONHID_H_
 #define _WX_MACCARBONHID_H_
 
-#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
-    #pragma interface "hid.h"
-#endif
-
 #include "wx/defs.h"
 #include "wx/string.h"
 
 #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