Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
2645241a
Commit
2645241a
authored
Sep 28, 1998
by
Guido van Rossum
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixes for OS/2 by Jeff Rush.
parent
03dc5384
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
9 deletions
+9
-9
Modules/timemodule.c
Modules/timemodule.c
+9
-9
No files found.
Modules/timemodule.c
View file @
2645241a
...
...
@@ -90,16 +90,8 @@ extern int ftime();
#undef HAVE_CLOCK
/* We have our own version down below */
#endif
/* MS_WIN32 */
#if defined(PYOS_OS2)
#define INCL_DOS
#define INCL_DOSERRORS
#define INCL_NOPMAPI
#include <os2.h>
#endif
#if defined(PYCC_VACPP)
#include <time.h>
#define timezone _timezone
#include <sys/time.h>
#endif
#ifdef __BEOS__
...
...
@@ -611,11 +603,19 @@ inittime()
d
=
PyModule_GetDict
(
m
);
#ifdef HAVE_TZNAME
tzset
();
#ifdef PYOS_OS2
ins
(
d
,
"timezone"
,
PyInt_FromLong
((
long
)
_timezone
));
#else
/* !PYOS_OS2 */
ins
(
d
,
"timezone"
,
PyInt_FromLong
((
long
)
timezone
));
#endif
/* PYOS_OS2 */
#ifdef HAVE_ALTZONE
ins
(
d
,
"altzone"
,
PyInt_FromLong
((
long
)
altzone
));
#else
#ifdef PYOS_OS2
ins
(
d
,
"altzone"
,
PyInt_FromLong
((
long
)
_timezone
-
3600
));
#else
/* !PYOS_OS2 */
ins
(
d
,
"altzone"
,
PyInt_FromLong
((
long
)
timezone
-
3600
));
#endif
/* PYOS_OS2 */
#endif
ins
(
d
,
"daylight"
,
PyInt_FromLong
((
long
)
daylight
));
ins
(
d
,
"tzname"
,
Py_BuildValue
(
"(zz)"
,
tzname
[
0
],
tzname
[
1
]));
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment