]> git.saurik.com Git - apple/xnu.git/blobdiff - iokit/IOKit/IOTypes.h
xnu-1699.22.73.tar.gz
[apple/xnu.git] / iokit / IOKit / IOTypes.h
index 9f5d5a3f7f2eaf50c30f3244b8a70ce5e208d203..3c41ab070406b558def3dd545ad1172cb3b50a82 100644 (file)
@@ -164,7 +164,12 @@ typedef unsigned int       IOAlignment;
 #ifndef __IOKIT_PORTS_DEFINED__
 #define __IOKIT_PORTS_DEFINED__
 #ifdef KERNEL
+#ifdef __cplusplus
+class OSObject;
+typedef OSObject * io_object_t;
+#else
 typedef struct OSObject * io_object_t;
+#endif
 #else /* KERNEL */
 typedef mach_port_t    io_object_t;
 #endif /* KERNEL */