mirror of
https://github.com/python/cpython.git
synced 2025-12-04 16:43:27 +00:00
bpo-44321: Adds os.EX_OK for Windows (GH-26559)
This commit is contained in:
parent
0acc258fe6
commit
19459f8ce6
2 changed files with 7 additions and 2 deletions
|
|
@ -3656,9 +3656,10 @@ written in Python, such as a mail server's external command delivery program.
|
||||||
|
|
||||||
.. data:: EX_OK
|
.. data:: EX_OK
|
||||||
|
|
||||||
Exit code that means no error occurred.
|
Exit code that means no error occurred. May be taken from the defined value of
|
||||||
|
``EXIT_SUCCESS`` on some platforms. Generally has a value of zero.
|
||||||
|
|
||||||
.. availability:: Unix.
|
.. availability:: Unix, Windows.
|
||||||
|
|
||||||
|
|
||||||
.. data:: EX_USAGE
|
.. data:: EX_USAGE
|
||||||
|
|
|
||||||
|
|
@ -23,6 +23,10 @@
|
||||||
# include <pathcch.h>
|
# include <pathcch.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#if !defined(EX_OK) && defined(EXIT_SUCCESS)
|
||||||
|
#define EX_OK EXIT_SUCCESS
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifdef __VXWORKS__
|
#ifdef __VXWORKS__
|
||||||
# include "pycore_bitutils.h" // _Py_popcount32()
|
# include "pycore_bitutils.h" // _Py_popcount32()
|
||||||
#endif
|
#endif
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue