[ python-Bugs-978645 ] compiler warning for _NSGetExecutablePath()
in getpath.c
SourceForge.net
noreply at sourceforge.net
Fri Jun 25 06:55:07 EDT 2004
Bugs item #978645, was opened at 2004-06-24 02:49
Message generated for change (Comment added) made by jackjansen
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=978645&group_id=5470
Category: Macintosh
Group: Python 2.4
Status: Open
Resolution: None
Priority: 3
Submitted By: Brett Cannon (bcannon)
Assigned to: Jack Jansen (jackjansen)
Summary: compiler warning for _NSGetExecutablePath() in getpath.c
Initial Comment:
On OS X 10.3.4 (gcc 3.3, compiled with --disable-framework --
disable-toolbox-glue), a warning about no function prototype for
_NSGetExecutablePath() is thrown for Modules/getpath.c:399 . It
looks like this has to do with the include file for the function
(mach-o/dyld.h) being #ifdef'ed with WITH_NEXT_FRAMEWORK
while the code using _NSGetExecutablePath() is #ifdef'ed with
__APPLE__. Should probably use the same #ifdef statement, but I
don't know which one.
----------------------------------------------------------------------
>Comment By: Jack Jansen (jackjansen)
Date: 2004-06-25 12:55
Message:
Logged In: YES
user_id=45365
Brett,
you want the _NSGetExecutablePath code for non-framework builds as
well as for framework builds. I can't test right now, but I assume that
using
#ifdef __APPLE__
#include <mach-o/dyld.h>
#endif
at the top (in stead of the #ifdef WITH_NETX_FRAMEWORK that's there
right now) should do the trick. Could you check this, and check in the fix
if it works, please?
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=978645&group_id=5470
More information about the Python-bugs-list
mailing list