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