Register
Login
Resources
Docs Blog Datasets Glossary Case Studies Tutorials & Webinars
Product
Data Engine LLMs Platform Enterprise
Pricing Explore
Connect to our Discord channel

osdefs.h 691 B

You have to be logged in to leave a comment. Sign In
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
  1. #ifndef Py_OSDEFS_H
  2. #define Py_OSDEFS_H
  3. #ifdef __cplusplus
  4. extern "C" {
  5. #endif
  6. /* Operating system dependencies */
  7. #ifdef MS_WINDOWS
  8. #define SEP L'\\'
  9. #define ALTSEP L'/'
  10. #define MAXPATHLEN 256
  11. #define DELIM L';'
  12. #endif
  13. /* Filename separator */
  14. #ifndef SEP
  15. #define SEP L'/'
  16. #endif
  17. /* Max pathname length */
  18. #ifdef __hpux
  19. #include <sys/param.h>
  20. #include <limits.h>
  21. #ifndef PATH_MAX
  22. #define PATH_MAX MAXPATHLEN
  23. #endif
  24. #endif
  25. #ifndef MAXPATHLEN
  26. #if defined(PATH_MAX) && PATH_MAX > 1024
  27. #define MAXPATHLEN PATH_MAX
  28. #else
  29. #define MAXPATHLEN 1024
  30. #endif
  31. #endif
  32. /* Search path entry delimiter */
  33. #ifndef DELIM
  34. #define DELIM L':'
  35. #endif
  36. #ifdef __cplusplus
  37. }
  38. #endif
  39. #endif /* !Py_OSDEFS_H */
Tip!

Press p or to see the previous file or, n or to see the next file

Comments

Loading...