]> git.saurik.com Git - apple/xnu.git/blobdiff - iokit/IOKit/IOLib.h
xnu-344.23.tar.gz
[apple/xnu.git] / iokit / IOKit / IOLib.h
index 7e46f2a133a8a677c6f3ffbcfa3bab8b86d5c264..962443ddc11febfab737dae3d4a38b64acdc0f1e 100644 (file)
@@ -33,9 +33,7 @@
 #error IOLib.h is for kernel use only
 #endif
 
-#ifndef IOKIT_DEPRECATED
-#define IOKIT_DEPRECATED       1
-#endif
+#include <sys/appleapiopts.h>
 
 #include <IOKit/system.h>
 
@@ -51,6 +49,7 @@ extern "C" {
 
 #include <kern/thread_call.h>
 #include <kern/clock.h>
+
 /*
  * min/max macros.
  */
@@ -271,7 +270,7 @@ static inline IOFixed IOFixedDivide(IOFixed a, IOFixed b)
         (((value) / (multiple)) * (multiple));
 
 
-#if IOKIT_DEPRECATED
+#ifdef __APPLE_API_OBSOLETE
 
 /* The following API is deprecated */
 
@@ -281,14 +280,14 @@ static inline IOFixed IOFixedDivide(IOFixed a, IOFixed b)
 
 void IOPanic(const char *reason);
 
-/* The AbsoluteTime clock API exported by kern/clock.h
+/* The API exported by kern/clock.h
    should be used for high resolution timing. */
 
 void IOGetTime( mach_timespec_t * clock_time);
 
 extern mach_timespec_t IOZeroTvalspec;
 
-#endif /* IOKIT_DEPRECATED */
+#endif /* __APPLE_API_OBSOLETE */
 
 #ifdef __cplusplus
 } /* extern "C" */