Staging
v0.5.1
https://github.com/python/cpython
Revision 58e64a82eeec12711a55349f86ced990989a360b authored by Vladimir Marangozov on 03 September 2000, 23:47:08 UTC, committed by Vladimir Marangozov on 03 September 2000, 23:47:08 UTC
and this breaks the AIX build with an INT_MAX redefinition error.
"config.h" is included in pgenheaders.h, so moving this down fixes the
problem.
1 parent 1d62f49
Raw File
Tip revision: 58e64a82eeec12711a55349f86ced990989a360b authored by Vladimir Marangozov on 03 September 2000, 23:47:08 UTC
Move down the INT_MAX logic, because HAVE_LIMITS_H was always undefined
Tip revision: 58e64a8
osdefs.h
#ifndef Py_OSDEFS_H
#define Py_OSDEFS_H
#ifdef __cplusplus
extern "C" {
#endif


/* Operating system dependencies */

#ifdef macintosh
#define SEP ':'
#define MAXPATHLEN 256
/* Mod by Jack: newline is less likely to occur in filenames than space */
#define DELIM '\n'
#endif

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

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

/* Max pathname length */
#ifndef MAXPATHLEN
#define MAXPATHLEN 1024
#endif

/* Search path entry delimiter */
#ifndef DELIM
#define DELIM ':'
#endif

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