File tree Expand file tree Collapse file tree 1 file changed +17
-11
lines changed Expand file tree Collapse file tree 1 file changed +17
-11
lines changed Original file line number Diff line number Diff line change 2
2
3
3
#ifndef Py_POSIXMODULE_H
4
4
#define Py_POSIXMODULE_H
5
+ #ifndef Py_LIMITED_API
5
6
#ifdef __cplusplus
6
7
extern "C" {
7
8
#endif
8
9
9
10
#ifdef HAVE_SYS_TYPES_H
10
- #include <sys/types.h>
11
+ # include <sys/types.h> // uid_t
11
12
#endif
12
13
13
- #ifndef Py_LIMITED_API
14
14
#ifndef MS_WINDOWS
15
- PyAPI_FUNC (PyObject * ) _PyLong_FromUid (uid_t );
16
- PyAPI_FUNC (PyObject * ) _PyLong_FromGid (gid_t );
15
+ extern PyObject * _PyLong_FromUid (uid_t );
16
+
17
+ // Export for 'grp' shared extension
18
+ PyAPI_FUNC (PyObject * ) _PyLong_FromGid (gid_t );
19
+
20
+ // Export for '_posixsubprocess' shared extension
17
21
PyAPI_FUNC (int ) _Py_Uid_Converter (PyObject * , uid_t * );
22
+
23
+ // Export for 'grp' shared extension
18
24
PyAPI_FUNC (int ) _Py_Gid_Converter (PyObject * , gid_t * );
19
- #endif /* MS_WINDOWS */
25
+ #endif // !MS_WINDOWS
20
26
21
- #if defined(PYPTHREAD_SIGMASK ) || defined(HAVE_SIGWAIT ) || \
22
- defined(HAVE_SIGWAITINFO ) || defined(HAVE_SIGTIMEDWAIT )
23
- # define HAVE_SIGSET_T
27
+ #if ( defined(PYPTHREAD_SIGMASK ) || defined(HAVE_SIGWAIT ) \
28
+ || defined(HAVE_SIGWAITINFO ) || defined(HAVE_SIGTIMEDWAIT ) )
29
+ # define HAVE_SIGSET_T
24
30
#endif
25
31
26
- PyAPI_FUNC (int ) _Py_Sigset_Converter (PyObject * , void * );
27
- #endif /* Py_LIMITED_API */
32
+ extern int _Py_Sigset_Converter (PyObject * , void * );
28
33
29
34
#ifdef __cplusplus
30
35
}
31
36
#endif
32
- #endif /* !Py_POSIXMODULE_H */
37
+ #endif // !Py_LIMITED_API
38
+ #endif // !Py_POSIXMODULE_H
You can’t perform that action at this time.
0 commit comments