GraphicsMagick: magick/nt_base.h Improve compatibility witholder...

GraphicsMagick Commits <[email protected]>
Newsgroups gmane.comp.video.graphicsmagick.cvs
Message-ID <mailman.360.1679839725.6776.graphicsmagick-commit@lists.sourceforge.net>
changeset 4c2e0565cf1d in /hg/GraphicsMagick
details: http://hg.GraphicsMagick.org/hg/GraphicsMagick?cmd=changeset;node=4c2e0565cf1d
summary: magick/nt_base.h Improve compatibility witholder versions of MSVC.

diffstat:

 ChangeLog                           |  5 +++++
 VisualMagick/configure/configure.rc |  4 ++--
 magick/nt_base.h                    |  4 ++++
 3 files changed, 11 insertions(+), 2 deletions(-)

diffs (42 lines):

diff -r 5ccb2b5fc061 -r 4c2e0565cf1d ChangeLog
--- a/ChangeLog	Sun Mar 19 14:41:43 2023 -0500
+++ b/ChangeLog	Sun Mar 26 16:08:08 2023 +0200
@@ -1,3 +1,8 @@
+2023-03-26  Fojtik Jaroslav  <[email protected]>
+
+	* magick/nt_base.h Improve compatibility witholder versions
+        of MSVC.
+
 2023-03-19  Bob Friesenhahn  <[email protected]>
 
 	* magick/resize.c (ResizeImage): Clarify
diff -r 5ccb2b5fc061 -r 4c2e0565cf1d VisualMagick/configure/configure.rc
--- a/VisualMagick/configure/configure.rc	Sun Mar 19 14:41:43 2023 -0500
+++ b/VisualMagick/configure/configure.rc	Sun Mar 26 16:08:08 2023 +0200
@@ -228,8 +228,8 @@
 //
 
 VS_VERSION_INFO VERSIONINFO
- FILEVERSION 1,0,1,1
- PRODUCTVERSION 1,0,1,1
+ FILEVERSION 1,0,1,2
+ PRODUCTVERSION 1,0,1,2
  FILEFLAGSMASK 0x3fL
 #ifdef _DEBUG
  FILEFLAGS 0x1L
diff -r 5ccb2b5fc061 -r 4c2e0565cf1d magick/nt_base.h
--- a/magick/nt_base.h	Sun Mar 19 14:41:43 2023 -0500
+++ b/magick/nt_base.h	Sun Mar 26 16:08:08 2023 +0200
@@ -219,8 +219,12 @@
 #if defined(_VISUALC_) && (_MSC_VER < 1900)
 #undef snprintf
 extern MagickExport int NTsnprintf(char* str, size_t size, const char* format, ...);
+#if _MSC_VER < 1400
+#define snprintf NTsnprintf
+#else
 #define snprintf(str,size,format,...) NTsnprintf(str,size,format,__VA_ARGS__)
 #endif
+#endif
 
 /*
   Windows provides Unix-style access() via _access()
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.