2021-08-08 04:08:33 +00:00
|
|
|
#ifndef Py_OSDEFS_H
|
|
|
|
#define Py_OSDEFS_H
|
2021-08-10 17:26:13 +00:00
|
|
|
COSMOPOLITAN_C_START_
|
|
|
|
/* clang-format off */
|
2021-08-08 04:08:33 +00:00
|
|
|
|
|
|
|
/* Operating system dependencies */
|
|
|
|
|
|
|
|
#ifdef MS_WINDOWS
|
|
|
|
#define SEP L'\\'
|
|
|
|
#define ALTSEP L'/'
|
|
|
|
#define MAXPATHLEN 256
|
|
|
|
#define DELIM L';'
|
|
|
|
#endif
|
|
|
|
|
|
|
|
/* Filename separator */
|
|
|
|
#ifndef SEP
|
|
|
|
#define SEP L'/'
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef MAXPATHLEN
|
|
|
|
#if defined(PATH_MAX) && PATH_MAX > 1024
|
|
|
|
#define MAXPATHLEN PATH_MAX
|
|
|
|
#else
|
|
|
|
#define MAXPATHLEN 1024
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
|
|
|
|
/* Search path entry delimiter */
|
|
|
|
#ifndef DELIM
|
|
|
|
#define DELIM L':'
|
|
|
|
#endif
|
|
|
|
|
2021-08-10 17:26:13 +00:00
|
|
|
COSMOPOLITAN_C_END_
|
2021-08-08 04:08:33 +00:00
|
|
|
#endif /* !Py_OSDEFS_H */
|