]> git.saurik.com Git - wxWidgets.git/commitdiff
Fix libtiff compilation with VC6 after upgrade to 4.0.3.
authorVadim Zeitlin <vadim@wxwidgets.org>
Sat, 22 Dec 2012 02:34:26 +0000 (02:34 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sat, 22 Dec 2012 02:34:26 +0000 (02:34 +0000)
VC6 headers don't define INVALID_SET_FILE_POINTER constant so do it ourselves
if necessary.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73242 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/tiff/libtiff/tif_win32.c

index 9910738b49476b5a2bc3aef23fe8fc056f049331..42e340c2dfb1ec4ef4ed3e54d59a8f5ac93b9d44 100644 (file)
 
 #include <windows.h>
 
 
 #include <windows.h>
 
+/* This define is missing from VC6 headers. */
+#ifndef INVALID_SET_FILE_POINTER
+#define INVALID_SET_FILE_POINTER ((DWORD)-1)
+#endif
+
 static tmsize_t
 _tiffReadProc(thandle_t fd, void* buf, tmsize_t size)
 {
 static tmsize_t
 _tiffReadProc(thandle_t fd, void* buf, tmsize_t size)
 {