Skip to content

Commit

Permalink
Enable libtiff Win32 I/O correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
kmilos committed Feb 2, 2021
1 parent 023dbe3 commit 0210550
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -729,7 +729,7 @@ def build_extensions(self):
defs.append(("HAVE_LIBTIFF", None))
# FIXME the following define should be detected automatically
# based on system libtiff, see #4237
if PLATFORM_MINGW:
if sys.platform == "win32":
defs.append(("USE_WIN32_FILEIO", None))
if feature.xcb:
libs.append(feature.xcb)
Expand Down
2 changes: 1 addition & 1 deletion winbuild/tiff.opt
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ OPTFLAGS = /Ox /MD /EHsc /W3 /D_CRT_SECURE_NO_DEPRECATE
# instead of Windows specific system calls. See notes on top of tif_unix.c
# module for details.
#
USE_WIN_CRT_LIB = 1
#USE_WIN_CRT_LIB = 1

# Compiler specific options. You may probably want to adjust compilation
# parameters in CFLAGS variable. Refer to your compiler documentation
Expand Down

0 comments on commit 0210550

Please sign in to comment.