GraphicsMagick: Reverted file "jmorecfg.h" to previous version. ...

GraphicsMagick Commits <[email protected]>
Newsgroups gmane.comp.video.graphicsmagick.cvs
Message-ID <mailman.21458.1659865739.1524.graphicsmagick-commit@lists.sourceforge.net>
changeset 9c564d99b50a in /hg/GraphicsMagick
details: http://hg.GraphicsMagick.org/hg/GraphicsMagick?cmd=changeset;node=9c564d99b50a
summary: Reverted file "jmorecfg.h" to previous version. It contains specially tailored chunk for gm.

diffstat:

 jpeg/jmorecfg.h |  43 +++++++++++++++++++++++++++++++++++++++++++
 1 files changed, 43 insertions(+), 0 deletions(-)

diffs (53 lines):

diff -r d4343d154600 -r 9c564d99b50a jpeg/jmorecfg.h
--- a/jpeg/jmorecfg.h	Sun Aug 07 10:41:52 2022 +0200
+++ b/jpeg/jmorecfg.h	Sun Aug 07 11:48:19 2022 +0200
@@ -247,6 +247,49 @@
 /* a reference to a GLOBAL function: */
 #define EXTERN(type)		extern type
 
+/*
+ * Following chunk added for GraphicsMagick
+ */
+#if defined(_VISUALC_)
+#  undef GLOBAL
+#  undef EXTERN
+   //
+   // Under VISUALC we have single threaded static libraries, or
+   // mutli-threaded DLLs using the multithreaded runtime DLLs.
+   //
+#  if defined(_MT) && defined(_DLL) && !defined(_JPEGDLL_) && !defined(_LIB)
+#    define _JPEGDLL_
+#  endif
+#  if defined(_JPEGDLL_)
+#    pragma warning( disable: 4273 )	/* Disable the stupid dll linkage warnings */
+#    if !defined(_JPEGLIB_)
+       // a function referenced thru EXTERNs:
+#      define GLOBAL(type) __declspec(dllimport) type
+       // a reference to a GLOBAL function:
+#      define EXTERN(type) extern __declspec(dllimport) type
+#    else
+       // a function referenced thru EXTERNs:
+#      define GLOBAL(type) __declspec(dllexport) type
+       // a reference to a GLOBAL function:
+#      define EXTERN(type) extern __declspec(dllexport) type
+#    endif
+#  else
+     // a function referenced thru EXTERNs:
+#    define GLOBAL(type) type
+     // a reference to a GLOBAL function:
+#    define EXTERN(type) extern type
+#  endif
+
+#  pragma warning(disable : 4018)
+#  pragma warning(disable : 4244)
+#  pragma warning(disable : 4142)
+
+#  ifndef INLINE
+#    define INLINE __inline  /* MSVC uses __inline */
+#  endif
+
+#endif /* defined(_VISUALC_) */
+
 
 /* This macro is used to declare a "method", that is, a function pointer.
  * We want to supply prototype parameters if the compiler can cope.
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.