threading.h should include mach/mach.h instead of mach/task.h

1 view
Skip to first unread message

Jean-Daniel

unread,
May 25, 2010, 12:09:28 PM5/25/10
to Codec Developers
When compiling on OS X, there is a warning for undefined function
mach_task_self().
This functions is defined in mach_init.h. If it include mach/mach.h
instead of <mach/mach_task.h> is fix this issue (or at east, include
<mach/mach_init.h>).

For the record, mach_task_self is defined as a macro to a global var
instead of a function call when the proper header is include. So even
if this function is compatible with the implicit declaration, it may
be interesting to fix this.

Reply all
Reply to author
Forward
0 new messages