From c879e6eeedc274706c6138f7823318df68147c1b Mon Sep 17 00:00:00 2001 From: efesxzc Date: Wed, 22 May 2024 18:39:53 +0500 Subject: [PATCH] fix msvc build error --- src/tinytiffreader.c | 6 +++++- src/tinytiffwriter.c | 6 +++++- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/src/tinytiffreader.c b/src/tinytiffreader.c index 2cf2aa8..76a84d4 100644 --- a/src/tinytiffreader.c +++ b/src/tinytiffreader.c @@ -56,7 +56,11 @@ #ifdef TINYTIFF_USE_WINAPI_FOR_FILEIO # include -# 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 diff --git a/src/tinytiffwriter.c b/src/tinytiffwriter.c index 1b25379..0e07208 100644 --- a/src/tinytiffwriter.c +++ b/src/tinytiffwriter.c @@ -50,7 +50,11 @@ #ifdef TINYTIFF_USE_WINAPI_FOR_FILEIO # include -# 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