Mercurial > repos > rliterman > csp2
annotate CSP2/CSP2_env/env-d9b9114564458d9d-741b3de822f2aaca6c6caa4325c4afce/include/python3.8/osdefs.h @ 69:33d812a61356
planemo upload commit 2e9511a184a1ca667c7be0c6321a36dc4e3d116d
author | jpayne |
---|---|
date | Tue, 18 Mar 2025 17:55:14 -0400 |
parents | |
children |
rev | line source |
---|---|
jpayne@69 | 1 #ifndef Py_OSDEFS_H |
jpayne@69 | 2 #define Py_OSDEFS_H |
jpayne@69 | 3 #ifdef __cplusplus |
jpayne@69 | 4 extern "C" { |
jpayne@69 | 5 #endif |
jpayne@69 | 6 |
jpayne@69 | 7 |
jpayne@69 | 8 /* Operating system dependencies */ |
jpayne@69 | 9 |
jpayne@69 | 10 #ifdef MS_WINDOWS |
jpayne@69 | 11 #define SEP L'\\' |
jpayne@69 | 12 #define ALTSEP L'/' |
jpayne@69 | 13 #define MAXPATHLEN 256 |
jpayne@69 | 14 #define DELIM L';' |
jpayne@69 | 15 #endif |
jpayne@69 | 16 |
jpayne@69 | 17 #ifdef __VXWORKS__ |
jpayne@69 | 18 #define DELIM L';' |
jpayne@69 | 19 #endif |
jpayne@69 | 20 |
jpayne@69 | 21 /* Filename separator */ |
jpayne@69 | 22 #ifndef SEP |
jpayne@69 | 23 #define SEP L'/' |
jpayne@69 | 24 #endif |
jpayne@69 | 25 |
jpayne@69 | 26 /* Max pathname length */ |
jpayne@69 | 27 #ifdef __hpux |
jpayne@69 | 28 #include <sys/param.h> |
jpayne@69 | 29 #include <limits.h> |
jpayne@69 | 30 #ifndef PATH_MAX |
jpayne@69 | 31 #define PATH_MAX MAXPATHLEN |
jpayne@69 | 32 #endif |
jpayne@69 | 33 #endif |
jpayne@69 | 34 |
jpayne@69 | 35 #ifndef MAXPATHLEN |
jpayne@69 | 36 #if defined(PATH_MAX) && PATH_MAX > 1024 |
jpayne@69 | 37 #define MAXPATHLEN PATH_MAX |
jpayne@69 | 38 #else |
jpayne@69 | 39 #define MAXPATHLEN 1024 |
jpayne@69 | 40 #endif |
jpayne@69 | 41 #endif |
jpayne@69 | 42 |
jpayne@69 | 43 /* Search path entry delimiter */ |
jpayne@69 | 44 #ifndef DELIM |
jpayne@69 | 45 #define DELIM L':' |
jpayne@69 | 46 #endif |
jpayne@69 | 47 |
jpayne@69 | 48 #ifdef __cplusplus |
jpayne@69 | 49 } |
jpayne@69 | 50 #endif |
jpayne@69 | 51 #endif /* !Py_OSDEFS_H */ |