Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
3894493a
Commit
3894493a
authored
Aug 01, 2013
by
Dmitry Timoshkov
Committed by
Alexandre Julliard
Aug 01, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
windowscodecs: Workaround libtiff bug when it defines toff_t as 32-bit for 32-bit builds.
parent
745e7c93
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
2 deletions
+12
-2
tiffformat.c
dlls/windowscodecs/tiffformat.c
+12
-2
No files found.
dlls/windowscodecs/tiffformat.c
View file @
3894493a
...
...
@@ -44,6 +44,16 @@ WINE_DEFAULT_DEBUG_CHANNEL(wincodecs);
#ifdef SONAME_LIBTIFF
/* Workaround for broken libtiff 4.x headers on some 64-bit hosts which
* define TIFF_UINT64_T/toff_t as 32-bit for 32-bit builds, while they
* are supposed to be always 64-bit.
* TIFF_UINT64_T doesn't exist in libtiff 3.x, it was introduced in 4.x.
*/
#ifdef TIFF_UINT64_T
# undef toff_t
# define toff_t UINT64
#endif
static
CRITICAL_SECTION
init_tiff_cs
;
static
CRITICAL_SECTION_DEBUG
init_tiff_cs_debug
=
{
...
...
@@ -209,8 +219,8 @@ static TIFF* tiff_open_stream(IStream *stream, const char *mode)
IStream_Seek
(
stream
,
zero
,
STREAM_SEEK_SET
,
NULL
);
return
pTIFFClientOpen
(
"<IStream object>"
,
mode
,
stream
,
tiff_stream_read
,
tiff_stream_write
,
tiff_stream_seek
,
tiff_stream_close
,
tiff_stream_size
,
tiff_stream_map
,
tiff_stream_unmap
);
tiff_stream_write
,
(
void
*
)
tiff_stream_seek
,
tiff_stream_close
,
(
void
*
)
tiff_stream_size
,
(
void
*
)
tiff_stream_map
,
(
void
*
)
tiff_stream_unmap
);
}
typedef
struct
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment