Last change
on this file since 11949 was 11949, checked in by Eric.Larour, 13 years ago |
Some local patch and mods to Python 3 install
|
File size:
972 bytes
|
Line | |
---|
1 | Index: Include/pyport.h
|
---|
2 | ===================================================================
|
---|
3 | --- Include/pyport.h (revision 933)
|
---|
4 | +++ Include/pyport.h (working copy)
|
---|
5 | @@ -514,22 +514,40 @@
|
---|
6 | #if __FreeBSD_version > 500039
|
---|
7 | #include <ctype.h>
|
---|
8 | #include <wctype.h>
|
---|
9 | +/* If the source file #includes <cctype> before "Python.h" then
|
---|
10 | + * these macros will not be defined at this point and we
|
---|
11 | + * should not define them either.
|
---|
12 | + */
|
---|
13 | +#ifdef isalnum
|
---|
14 | #undef isalnum
|
---|
15 | #define isalnum(c) iswalnum(btowc(c))
|
---|
16 | +#endif
|
---|
17 | +#ifdef isalpha
|
---|
18 | #undef isalpha
|
---|
19 | #define isalpha(c) iswalpha(btowc(c))
|
---|
20 | +#endif
|
---|
21 | +#ifdef islower
|
---|
22 | #undef islower
|
---|
23 | #define islower(c) iswlower(btowc(c))
|
---|
24 | +#endif
|
---|
25 | +#ifdef isspace
|
---|
26 | #undef isspace
|
---|
27 | #define isspace(c) iswspace(btowc(c))
|
---|
28 | +#endif
|
---|
29 | +#ifdef isupper
|
---|
30 | #undef isupper
|
---|
31 | #define isupper(c) iswupper(btowc(c))
|
---|
32 | +#endif
|
---|
33 | +#ifdef tolower
|
---|
34 | #undef tolower
|
---|
35 | #define tolower(c) towlower(btowc(c))
|
---|
36 | +#endif
|
---|
37 | +#ifdef toupper
|
---|
38 | #undef toupper
|
---|
39 | #define toupper(c) towupper(btowc(c))
|
---|
40 | #endif
|
---|
41 | #endif
|
---|
42 | +#endif
|
---|
Note:
See
TracBrowser
for help on using the repository browser.