Staging
v0.5.1
https://github.com/python/cpython
Revision b76bcc4ffc1f81a3cb5e6cabb77f127f71e2eddb authored by Serhiy Storchaka on 26 January 2015, 11:45:39 UTC, committed by Serhiy Storchaka on 26 January 2015, 11:45:39 UTC
1 parent b6c0c5b
Raw File
Tip revision: b76bcc4ffc1f81a3cb5e6cabb77f127f71e2eddb authored by Serhiy Storchaka on 26 January 2015, 11:45:39 UTC
Issue #14099: Backout changeset e5bb3044402b (except adapted tests).
Tip revision: b76bcc4
osdefs.h
#ifndef Py_OSDEFS_H
#define Py_OSDEFS_H
#ifdef __cplusplus
extern "C" {
#endif


/* Operating system dependencies */

/* Mod by chrish: QNX has WATCOM, but isn't DOS */
#if !defined(__QNX__)
#if defined(MS_WINDOWS) || defined(__BORLANDC__) || defined(__WATCOMC__) || defined(__DJGPP__)
#define SEP L'\\'
#define ALTSEP L'/'
#define MAXPATHLEN 256
#define DELIM L';'
#endif
#endif

/* Filename separator */
#ifndef SEP
#define SEP L'/'
#endif

/* Max pathname length */
#ifdef __hpux
#include <sys/param.h>
#include <limits.h>
#ifndef PATH_MAX
#define PATH_MAX MAXPATHLEN
#endif
#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

#ifdef __cplusplus
}
#endif
#endif /* !Py_OSDEFS_H */
back to top