Enable libtiff Win32 I/O correctly

This commit is contained in:
Miloš Komarčević 2021-02-02 13:18:19 +01:00 committed by Andrew Murray
parent 759c518420
commit d8950adef4
2 changed files with 2 additions and 2 deletions

View File

@ -729,7 +729,7 @@ class pil_build_ext(build_ext):
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)

View File

@ -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