Karsten Hopp 39fbbd
To: vim-dev@vim.org
Karsten Hopp 39fbbd
Subject: Patch 7.2.288
Karsten Hopp 39fbbd
Fcc: outbox
Karsten Hopp 39fbbd
From: Bram Moolenaar <Bram@moolenaar.net>
Karsten Hopp 39fbbd
Mime-Version: 1.0
Karsten Hopp 39fbbd
Content-Type: text/plain; charset=UTF-8
Karsten Hopp 39fbbd
Content-Transfer-Encoding: 8bit
Karsten Hopp 39fbbd
------------
Karsten Hopp 39fbbd
Karsten Hopp 39fbbd
Patch 7.2.288
Karsten Hopp 39fbbd
Problem:    Python 2.6 pyconfig.h redefines macros.
Karsten Hopp 39fbbd
Solution:   Undefine the macros before including pyconfig.h.
Karsten Hopp 39fbbd
Files:      src/if_python.c
Karsten Hopp 39fbbd
Karsten Hopp 39fbbd
Karsten Hopp 39fbbd
*** ../vim-7.2.287/src/if_python.c	2009-11-03 11:43:05.000000000 +0100
Karsten Hopp 39fbbd
--- src/if_python.c	2009-11-11 12:33:37.000000000 +0100
Karsten Hopp 39fbbd
***************
Karsten Hopp 39fbbd
*** 37,42 ****
Karsten Hopp 39fbbd
--- 37,48 ----
Karsten Hopp 39fbbd
  #ifdef HAVE_STDARG_H
Karsten Hopp 39fbbd
  # undef HAVE_STDARG_H	/* Python's config.h defines it as well. */
Karsten Hopp 39fbbd
  #endif
Karsten Hopp 39fbbd
+ #ifdef _POSIX_C_SOURCE
Karsten Hopp 39fbbd
+ # undef _POSIX_C_SOURCE	/* pyconfig.h defines it as well. */
Karsten Hopp 39fbbd
+ #endif
Karsten Hopp 39fbbd
+ #ifdef _XOPEN_SOURCE
Karsten Hopp 39fbbd
+ # undef _XOPEN_SOURCE	/* pyconfig.h defines it as well. */
Karsten Hopp 39fbbd
+ #endif
Karsten Hopp 39fbbd
  
Karsten Hopp 39fbbd
  #define PY_SSIZE_T_CLEAN
Karsten Hopp 39fbbd
  
Karsten Hopp 39fbbd
*** ../vim-7.2.287/src/version.c	2009-11-11 14:45:36.000000000 +0100
Karsten Hopp 39fbbd
--- src/version.c	2009-11-11 15:05:51.000000000 +0100
Karsten Hopp 39fbbd
***************
Karsten Hopp 39fbbd
*** 683,684 ****
Karsten Hopp 39fbbd
--- 683,686 ----
Karsten Hopp 39fbbd
  {   /* Add new patch number below this line */
Karsten Hopp 39fbbd
+ /**/
Karsten Hopp 39fbbd
+     288,
Karsten Hopp 39fbbd
  /**/
Karsten Hopp 39fbbd
Karsten Hopp 39fbbd
-- 
Karsten Hopp 39fbbd
I am always surprised in the Linux world how quickly solutions can be
Karsten Hopp 39fbbd
obtained.  (Imagine sending an email to Bill Gates, asking why Windows
Karsten Hopp 39fbbd
crashed, and how to fix it...  and then getting an answer that fixed the
Karsten Hopp 39fbbd
problem... <0>_<0> !)		              -- Mark Langdon
Karsten Hopp 39fbbd
Karsten Hopp 39fbbd
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
Karsten Hopp 39fbbd
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
Karsten Hopp 39fbbd
\\\        download, build and distribute -- http://www.A-A-P.org        ///
Karsten Hopp 39fbbd
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///