Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit df75d0d

Browse files
committed
FIX: correct macro logic in file_compat.h
Following up on matplotlib#11635 / matplotlib#11636 another bug was found. PY3K is always defined in mplutils.h so we were always going through the nominally (py3 + pypy) only code path on all version of python which exposes an issue with fflush (eventually called by py27 internals) on BSD systems.
1 parent 00daa8f commit df75d0d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/file_compat.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ extern "C" {
4848
/*
4949
* PyFile_* compatibility
5050
*/
51-
#if defined(PY3K) | defined(PYPY_VERSION)
51+
#if PY3K | defined(PYPY_VERSION)
5252

5353
/*
5454
* Get a FILE* handle to the file represented by the Python object

0 commit comments

Comments
 (0)