Revision
101
Author
robert@fledge.watson.org
Date
2009-11-03 06:46:36 -0800 (Tue, 03 Nov 2009)

Log Message

On __APPLE__, include TargetConditionals.h for public headers, and test
TARGET_OS_MAC rather than HAVE_MACH.

Submitted by:	Kevin Van Vechten <kvv@apple.com>

Modified Paths

Diff

Modified: trunk/dispatch/dispatch.h (100 => 101)


--- trunk/dispatch/dispatch.h	2009-11-03 14:43:56 UTC (rev 100)
+++ trunk/dispatch/dispatch.h	2009-11-03 14:46:36 UTC (rev 101)
@@ -23,6 +23,7 @@
 
 #ifdef __APPLE__
 #include <Availability.h>
+#include <TargetConditionals.h>
 #endif
 #include <sys/cdefs.h>
 #include <stddef.h>

Modified: trunk/dispatch/source.h (100 => 101)


--- trunk/dispatch/source.h	2009-11-03 14:43:56 UTC (rev 100)
+++ trunk/dispatch/source.h	2009-11-03 14:46:36 UTC (rev 101)
@@ -26,7 +26,7 @@
 #include <dispatch/base.h> // for HeaderDoc
 #endif
 
-#ifdef HAVE_MACH
+#if TARGET_OS_MAC
 #include <mach/port.h>
 #include <mach/message.h>
 #endif