Skip to content

Commit d8950ad

Browse files
kmilosradarhere
authored andcommitted
Enable libtiff Win32 I/O correctly
1 parent 759c518 commit d8950ad

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -729,7 +729,7 @@ def build_extensions(self):
729729
defs.append(("HAVE_LIBTIFF", None))
730730
# FIXME the following define should be detected automatically
731731
# based on system libtiff, see #4237
732-
if PLATFORM_MINGW:
732+
if sys.platform == "win32":
733733
defs.append(("USE_WIN32_FILEIO", None))
734734
if feature.xcb:
735735
libs.append(feature.xcb)

winbuild/tiff.opt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ OPTFLAGS = /Ox /MD /EHsc /W3 /D_CRT_SECURE_NO_DEPRECATE
124124
# instead of Windows specific system calls. See notes on top of tif_unix.c
125125
# module for details.
126126
#
127-
USE_WIN_CRT_LIB = 1
127+
#USE_WIN_CRT_LIB = 1
128128

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

0 commit comments

Comments
 (0)