Skip to content

Commit

Permalink
fix msvc build error
Browse files Browse the repository at this point in the history
  • Loading branch information
EfesX authored and jkriege2 committed May 22, 2024
1 parent f23fda4 commit c879e6e
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
6 changes: 5 additions & 1 deletion src/tinytiffreader.c
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,11 @@

#ifdef TINYTIFF_USE_WINAPI_FOR_FILEIO
# include <windows.h>
# warning COMPILING TinyTIFFReader with WinAPI
# ifdef _MSC_VER
# pragma message(__FILE__ "(): COMPILING TinyTIFFWriter with WinAPI")
# else
# warning COMPILING TinyTIFFWriter with WinAPI
# endif // _MSC_VER
# define TinyTIFFReader_POSTYPE DWORD
#else
# define TinyTIFFReader_POSTYPE fpos_t
Expand Down
6 changes: 5 additions & 1 deletion src/tinytiffwriter.c
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,11 @@

#ifdef TINYTIFF_USE_WINAPI_FOR_FILEIO
# include <windows.h>
# warning COMPILING TinyTIFFWriter with WinAPI
# ifdef _MSC_VER
# pragma message(__FILE__ "(): COMPILING TinyTIFFWriter with WinAPI")
# else
# warning COMPILING TinyTIFFWriter with WinAPI
# endif // _MSC_VER
# define TinyTIFFWriter_POSTYPE DWORD
#else
# define TinyTIFFWriter_POSTYPE fpos_t
Expand Down

0 comments on commit c879e6e

Please sign in to comment.