[Python-bugs-list] [ python-Bugs-417952 ] Borland spells timezone as _timezone

noreply@sourceforge.net noreply@sourceforge.net
Thu, 26 Apr 2001 12:19:37 -0700


Bugs item #417952, was updated on 2001-04-21 20:34
You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=105470&aid=417952&group_id=5470

Category: Build
Group: Platform-specific
Status: Open
Resolution: None
Priority: 5
Submitted By: Stephen Hansen (ixokai)
>Assigned to: Tim Peters (tim_one)
Summary: Borland spells timezone as _timezone

Initial Comment:
Borland (to be difficult, I 'spose :)) 
spells 'timezone' 'daylight' and 'tzname' with an 
underscore at the begenning. These errors are in the 
inittime function.

The fix I used on my machine (just until I see how 
ya'll do it officially) was to add the following lines 
under '#include <time.h>' in pyport.h:

#ifdef __BORLANDC__
#  define timezone _timezone
#  define daylight _daylight
#  define tzname _tzname
#endif

----------------------------------------------------------------------

You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=105470&aid=417952&group_id=5470