~ubuntu-branches/ubuntu/maverick/python3.1/maverick

« back to all changes in this revision

Viewing changes to Include/osdefs.h

  • Committer: Bazaar Package Importer
  • Author(s): Matthias Klose
  • Date: 2009-03-23 00:01:27 UTC
  • Revision ID: james.westby@ubuntu.com-20090323000127-5fstfxju4ufrhthq
Tags: upstream-3.1~a1+20090322
ImportĀ upstreamĀ versionĀ 3.1~a1+20090322

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#ifndef Py_OSDEFS_H
 
2
#define Py_OSDEFS_H
 
3
#ifdef __cplusplus
 
4
extern "C" {
 
5
#endif
 
6
 
 
7
 
 
8
/* Operating system dependencies */
 
9
 
 
10
/* Mod by chrish: QNX has WATCOM, but isn't DOS */
 
11
#if !defined(__QNX__)
 
12
#if defined(MS_WINDOWS) || defined(__BORLANDC__) || defined(__WATCOMC__) || defined(__DJGPP__) || defined(PYOS_OS2)
 
13
#if defined(PYOS_OS2) && defined(PYCC_GCC)
 
14
#define MAXPATHLEN 260
 
15
#define SEP L'/'
 
16
#define ALTSEP L'\\'
 
17
#else
 
18
#define SEP L'\\'
 
19
#define ALTSEP L'/'
 
20
#define MAXPATHLEN 256
 
21
#endif
 
22
#define DELIM L';'
 
23
#endif
 
24
#endif
 
25
 
 
26
/* Filename separator */
 
27
#ifndef SEP
 
28
#define SEP L'/'
 
29
#endif
 
30
 
 
31
/* Max pathname length */
 
32
#ifndef MAXPATHLEN
 
33
#if defined(PATH_MAX) && PATH_MAX > 1024
 
34
#define MAXPATHLEN PATH_MAX
 
35
#else
 
36
#define MAXPATHLEN 1024
 
37
#endif
 
38
#endif
 
39
 
 
40
/* Search path entry delimiter */
 
41
#ifndef DELIM
 
42
#define DELIM L':'
 
43
#endif
 
44
 
 
45
#ifdef __cplusplus
 
46
}
 
47
#endif
 
48
#endif /* !Py_OSDEFS_H */