Mercurial > vim
comparison src/if_python3.c @ 13523:eafe575966ff v8.0.1635
patch 8.0.1635: undefining _POSIX_THREADS causes problems with Python 3
commit https://github.com/vim/vim/commit/16d7eced1a08565a9837db8067c7b9db5ed68854
Author: Bram Moolenaar <Bram@vim.org>
Date: Sat Mar 24 14:06:15 2018 +0100
patch 8.0.1635: undefining _POSIX_THREADS causes problems with Python 3
Problem: Undefining _POSIX_THREADS causes problems with Python 3. (Micah
Bucy, closes https://github.com/vim/vim/issues/2748)
Solution: Remove the lines.
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Sat, 24 Mar 2018 14:15:08 +0100 |
parents | 53cc7ea77c54 |
children | 417a01a1aaaa |
comparison
equal
deleted
inserted
replaced
13522:b0224f159492 | 13523:eafe575966ff |
---|---|
31 /* #define Py_DEBUG_NO_PYMALLOC */ | 31 /* #define Py_DEBUG_NO_PYMALLOC */ |
32 | 32 |
33 #include "vim.h" | 33 #include "vim.h" |
34 | 34 |
35 #include <limits.h> | 35 #include <limits.h> |
36 | |
37 /* Python.h defines _POSIX_THREADS itself (if needed) */ | |
38 #ifdef _POSIX_THREADS | |
39 # undef _POSIX_THREADS | |
40 #endif | |
41 | 36 |
42 #if defined(_WIN32) && defined(HAVE_FCNTL_H) | 37 #if defined(_WIN32) && defined(HAVE_FCNTL_H) |
43 # undef HAVE_FCNTL_H | 38 # undef HAVE_FCNTL_H |
44 #endif | 39 #endif |
45 | 40 |