mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-01-13 18:56:17 +03:00
Enable libtiff Win32 I/O correctly
This commit is contained in:
parent
759c518420
commit
d8950adef4
2
setup.py
2
setup.py
|
@ -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)
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user