diff options
author | Samuel Marks <807580+SamuelMarks@users.noreply.github.com> | 2021-06-24 16:45:18 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-06-24 16:45:18 (GMT) |
commit | 19459f8ce63cc7f905e3c1a55d09d4d10d245343 (patch) | |
tree | 36e1f5ee148a11f845cdc5d22f75c1bad13105b3 /Modules/posixmodule.c | |
parent | 0acc258fe6f0ec200ca2f6f9294adbf52a244802 (diff) | |
download | cpython-19459f8ce63cc7f905e3c1a55d09d4d10d245343.zip cpython-19459f8ce63cc7f905e3c1a55d09d4d10d245343.tar.gz cpython-19459f8ce63cc7f905e3c1a55d09d4d10d245343.tar.bz2 |
bpo-44321: Adds `os.EX_OK` for Windows (GH-26559)
Diffstat (limited to 'Modules/posixmodule.c')
-rw-r--r-- | Modules/posixmodule.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Modules/posixmodule.c b/Modules/posixmodule.c index 25ddc82..73e7e60 100644 --- a/Modules/posixmodule.c +++ b/Modules/posixmodule.c @@ -23,6 +23,10 @@ # include <pathcch.h> #endif +#if !defined(EX_OK) && defined(EXIT_SUCCESS) +#define EX_OK EXIT_SUCCESS +#endif + #ifdef __VXWORKS__ # include "pycore_bitutils.h" // _Py_popcount32() #endif |