GraphicsMagick: p2/src/appl/jasper.c Link problem with jasper ut...

GraphicsMagick Commits <[email protected]>
Newsgroups gmane.comp.video.graphicsmagick.cvs
Message-ID <mailman.36791.1672067181.1350.graphicsmagick-commit@lists.sourceforge.net>
changeset 7911eb52ab6c in /hg/GraphicsMagick
details: http://hg.GraphicsMagick.org/hg/GraphicsMagick?cmd=changeset;node=7911eb52ab6c
summary: p2/src/appl/jasper.c	Link problem with jasper utility fixed.

diffstat:

 ChangeLog             |   4 ++++
 jp2/src/appl/jasper.c |  15 +++++++++++++++
 2 files changed, 19 insertions(+), 0 deletions(-)

diffs (36 lines):

diff -r 835f209c7420 -r 7911eb52ab6c ChangeLog
--- a/ChangeLog	Mon Dec 26 09:00:44 2022 -0600
+++ b/ChangeLog	Mon Dec 26 16:05:30 2022 +0100
@@ -1,3 +1,7 @@
+2022-12-25 Fojtik Jaroslav  <[email protected]>
+
+	* jp2/src/appl/jasper.c	Link problem with jasper utility fixed.
+
 2022-12-25  Bob Friesenhahn  <[email protected]>
 
 	* magick/gem.c (Contrast): Visual Studio 17.4.3 does not like
diff -r 835f209c7420 -r 7911eb52ab6c jp2/src/appl/jasper.c
--- a/jp2/src/appl/jasper.c	Mon Dec 26 09:00:44 2022 -0600
+++ b/jp2/src/appl/jasper.c	Mon Dec 26 16:05:30 2022 +0100
@@ -81,6 +81,21 @@
 #include <jasper/jas_debug.h>
 
 
+#ifdef _DLL
+ #ifdef _MSC_VER			/* Fix provided by J.Fojtik */
+ #if _MSC_VER < 1800
+  unsigned long long __cdecl strtoull (
+    const char *nptr,
+    char **endptr,
+    int ibase
+    )
+{
+    return _strtoui64(nptr, endptr, ibase);
+}
+ #endif
+#endif
+#endif
+
 /******************************************************************************\
 *
 \******************************************************************************/
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.