Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit e81c806

Browse files
committed
De-duplicate contents of pytime.h
1 parent 4d22409 commit e81c806

1 file changed

Lines changed: 0 additions & 35 deletions

File tree

Include/pytime.h

Lines changed: 0 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -33,38 +33,3 @@ PyAPI_FUNC(void) _PyTime_Init(void);
3333
#endif
3434

3535
#endif /* Py_PYTIME_H */
36-
#ifndef Py_PYTIME_H
37-
#define Py_PYTIME_H
38-
39-
#include "pyconfig.h" /* include for defines */
40-
41-
/**************************************************************************
42-
Symbols and macros to supply platform-independent interfaces to time related
43-
functions and constants
44-
**************************************************************************/
45-
#ifdef __cplusplus
46-
extern "C" {
47-
#endif
48-
49-
#ifdef HAVE_GETTIMEOFDAY
50-
typedef struct timeval _PyTime_timeval;
51-
#else
52-
typedef struct {
53-
time_t tv_sec; /* seconds since Jan. 1, 1970 */
54-
long tv_usec; /* and microseconds */
55-
} _PyTime_timeval;
56-
#endif
57-
58-
/* Similar to POSIX gettimeofday but cannot fail. If system gettimeofday
59-
* fails or is not available, fall back to lower resolution clocks.
60-
*/
61-
PyAPI_FUNC(void) _PyTime_gettimeofday(_PyTime_timeval *tp);
62-
63-
/* Dummy to force linking. */
64-
PyAPI_FUNC(void) _PyTime_Init(void);
65-
66-
#ifdef __cplusplus
67-
}
68-
#endif
69-
70-
#endif /* Py_PYTIME_H */

0 commit comments

Comments
 (0)