[Libdispatch-changes] [12] trunk/src/internal.h

source_changes at macosforge.org source_changes at macosforge.org
Thu Sep 10 16:26:20 PDT 2009


Revision: 12
          http://trac.macosforge.org/projects/libdispatch/changeset/12
Author:   robert at fledge.watson.org
Date:     2009-09-06 09:38:24 -0700 (Sun, 06 Sep 2009)
Log Message:
-----------
Only define a protoype for _dispatch_source_create2() if building
without DISPATCH_NO_LEGACY.  This avoids using legacy-only
definitions when not building with legacy API support.

Modified Paths:
--------------
    trunk/src/internal.h

Modified: trunk/src/internal.h
===================================================================
--- trunk/src/internal.h	2009-09-06 15:38:00 UTC (rev 11)
+++ trunk/src/internal.h	2009-09-06 16:38:24 UTC (rev 12)
@@ -225,11 +225,13 @@
 
 void _dispatch_source_drain_kevent(struct kevent *);
 
+#ifndef DISPATCH_NO_LEGACY
 dispatch_source_t
 _dispatch_source_create2(dispatch_source_t ds,
 	dispatch_source_attr_t attr,
 	void *context,
 	dispatch_source_handler_function_t handler);
+#endif
 
 void _dispatch_update_kq(const struct kevent *);
 void _dispatch_run_timers(void);
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/libdispatch-changes/attachments/20090910/f7e37d34/attachment-0001.html>


More information about the Libdispatch-changes mailing list