[libdispatch-changes] [101] trunk/dispatch
source_changes at macosforge.org
source_changes at macosforge.org
Tue Nov 3 06:46:38 PST 2009
Revision: 101
http://trac.macosforge.org/projects/libdispatch/changeset/101
Author: robert at 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 at apple.com>
Modified Paths:
--------------
trunk/dispatch/dispatch.h
trunk/dispatch/source.h
Modified: trunk/dispatch/dispatch.h
===================================================================
--- 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
===================================================================
--- 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/libdispatch-changes/attachments/20091103/3eeaadf8/attachment.html>
More information about the libdispatch-changes
mailing list