1 To: [email protected] |
|
2 Subject: Patch 7.2.288 |
|
3 Fcc: outbox |
|
4 From: Bram Moolenaar <[email protected]> |
|
5 Mime-Version: 1.0 |
|
6 Content-Type: text/plain; charset=UTF-8 |
|
7 Content-Transfer-Encoding: 8bit |
|
8 ------------ |
|
9 |
|
10 Patch 7.2.288 |
|
11 Problem: Python 2.6 pyconfig.h redefines macros. |
|
12 Solution: Undefine the macros before including pyconfig.h. |
|
13 Files: src/if_python.c |
|
14 |
|
15 |
|
16 *** ../vim-7.2.287/src/if_python.c 2009-11-03 11:43:05.000000000 +0100 |
|
17 --- src/if_python.c 2009-11-11 12:33:37.000000000 +0100 |
|
18 *************** |
|
19 *** 37,42 **** |
|
20 --- 37,48 ---- |
|
21 #ifdef HAVE_STDARG_H |
|
22 # undef HAVE_STDARG_H /* Python's config.h defines it as well. */ |
|
23 #endif |
|
24 + #ifdef _POSIX_C_SOURCE |
|
25 + # undef _POSIX_C_SOURCE /* pyconfig.h defines it as well. */ |
|
26 + #endif |
|
27 + #ifdef _XOPEN_SOURCE |
|
28 + # undef _XOPEN_SOURCE /* pyconfig.h defines it as well. */ |
|
29 + #endif |
|
30 |
|
31 #define PY_SSIZE_T_CLEAN |
|
32 |
|
33 *** ../vim-7.2.287/src/version.c 2009-11-11 14:45:36.000000000 +0100 |
|
34 --- src/version.c 2009-11-11 15:05:51.000000000 +0100 |
|
35 *************** |
|
36 *** 683,684 **** |
|
37 --- 683,686 ---- |
|
38 { /* Add new patch number below this line */ |
|
39 + /**/ |
|
40 + 288, |
|
41 /**/ |
|
42 |
|
43 -- |
|
44 I am always surprised in the Linux world how quickly solutions can be |
|
45 obtained. (Imagine sending an email to Bill Gates, asking why Windows |
|
46 crashed, and how to fix it... and then getting an answer that fixed the |
|
47 problem... <0>_<0> !) -- Mark Langdon |
|
48 |
|
49 /// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net \\\ |
|
50 /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\ |
|
51 \\\ download, build and distribute -- http://www.A-A-P.org /// |
|
52 \\\ help me help AIDS victims -- http://ICCF-Holland.org /// |
|