[Patches] [ python-Patches-418147 ] Fixes to allow compiling w/ Borland
noreply@sourceforge.net
noreply@sourceforge.net
Mon, 30 Apr 2001 15:16:11 -0700
Patches item #418147, was updated on 2001-04-22 23:59
You can respond by visiting:
http://sourceforge.net/tracker/?func=detail&atid=305470&aid=418147&group_id=5470
Category: Build
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Stephen Hansen (ixokai)
>Assigned to: Tim Peters (tim_one)
Summary: Fixes to allow compiling w/ Borland
Initial Comment:
This patch supercedes the following bugs that I
submitted before realizing it'd be better to just
submit one big patch:
417802, 417949, 417952
So if someone wants to close them, they can :)
Now, an explaination of the changes I found that
needed to be done:
In pyport.h, I put a couple #defines to make rename
chsize/setmode to _chsize/_setmode.. why there? I
really couldn't think of a better place to put it, and
it seemed better then surrounding the calls
to '_chsize/_setmode' with #ifdef __BORLANDC_'s.
Posixmodule needed a lot of fixes. Borland obviousely
doesn't support Unixish *id's, firstly. Secondly, io.h
defines chmod as 'chmod(const char *, int amode)', and
we called an 'extern chmod(const char *, mode_t)', so
that needed to be altered. Later, it needed to include
__BORLANDC__ in the places where it
names 'posixmodule' as 'nt'.
In Timemodule, we have some renamings to do again. I
put them here instead of pyport.h, since it already
had most of them for Win16, even though I don't know
if that was best or not. Further, Borland needs to
keep HAVE_CLOCK, so I had to make it so Mark Hammond's
clock code didn't replace the built in one.
Config.h needed a few changes. I moved
HAVE_SYS_UTIME_H up by HAVE_HYPOT, so it could be
defined for everything still, and just have Borland
#undef it... So I basically copied what they did with
HAVE_HYPOT.
Okay, so all of the above was actually rather self-
explainatory from the patch. Oh well. :)
----------------------------------------------------------------------
>Comment By: Tim Peters (tim_one)
Date: 2001-04-30 15:16
Message:
Logged In: YES
user_id=31435
Assigned to me.
----------------------------------------------------------------------
You can respond by visiting:
http://sourceforge.net/tracker/?func=detail&atid=305470&aid=418147&group_id=5470