Skip to content
4 changes: 4 additions & 0 deletions supportApp/GraphicsMagickSrc/Magick++/lib/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,10 @@ ifeq ($(WITH_GRAPHICSMAGICK),YES)
ifeq ($(GRAPHICSMAGICK_PREFIX_SYMBOLS),YES)
USR_CXXFLAGS += -DPREFIX_MAGICK_SYMBOLS
endif
ifeq (mingw, $(findstring mingw, $(T_A)))
# multiple definition of `_Unwind_Resume on Linux. I don't know how to fix it.
USR_LDFLAGS += -Wl,-allow-multiple-definition
endif

USR_INCLUDES += -I$(TOP)/supportApp/GraphicsMagickSrc
USR_INCLUDES += -I$(TOP)/supportApp/GraphicsMagickSrc/lcms/include
Expand Down
2 changes: 1 addition & 1 deletion supportApp/GraphicsMagickSrc/coders/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ ifeq ($(WITH_GRAPHICSMAGICK),YES)
endif
endif

LIB_SYS_LIBS_WIN32 += User32 Gdi32 OleAut32
LIB_SYS_LIBS_WIN32 += user32 gdi32 oleaut32

endif # ($(GRAPHICSMAGICK_EXTERNAL),NO)
endif # ($(WITH_GRAPHICSMAGICK),YES)
Expand Down
2 changes: 1 addition & 1 deletion supportApp/GraphicsMagickSrc/magick/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ ifeq ($(WITH_GRAPHICSMAGICK),YES)
endif
endif

LIB_SYS_LIBS_WIN32 += Advapi32 User32 Gdi32
LIB_SYS_LIBS_WIN32 += advapi32 user32 gdi32
LIB_SYS_LIBS_Linux += Xext

endif # ($(GRAPHICSMAGICK_EXTERNAL),NO)
Expand Down
1 change: 0 additions & 1 deletion supportApp/GraphicsMagickSrc/ttf/Makefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
TOP = ../../..
include $(TOP)/configure/CONFIG

DIRS += builds
DIRS += src

include $(TOP)/configure/RULES_DIRS
2 changes: 1 addition & 1 deletion supportApp/bloscSrc/blosc/blosc.c
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
#include <inttypes.h>
#endif /* _WIN32 */

#if defined(_WIN32) && !defined(__GNUC__)
#if defined(_WIN32)
#include "win32/pthread.h"
#include "win32/pthread.c"
#else
Expand Down
5 changes: 4 additions & 1 deletion supportApp/hdf5Src/H5win32defs.h
Original file line number Diff line number Diff line change
Expand Up @@ -78,13 +78,16 @@ typedef __int64 h5_stat_size_t;
*/
#define HDmemset(X,C,Z) memset((void*)(X),C,Z)

#ifndef _TIMEZONE_DEFINED
#define _TIMEZONE_DEFINED
struct timezone {
int tz_minuteswest;
int tz_dsttime;
};
#endif

/* time.h before VS2015 does not include timespec */
#if (_MSC_VER < 1900)
#if defined (_MSC_VER) && (_MSC_VER < 1900)
struct timespec
{
time_t tv_sec; /* Seconds - >= 0 */
Expand Down
34 changes: 3 additions & 31 deletions supportApp/xml2Src/os/default/libxml/xmlexports.h
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
/** DOC_DISABLE */

/* Windows platform with MS compiler */
#if defined(_WIN32) && defined(_MSC_VER)
#if defined(_WIN32) && (defined(_MSC_VER) || defined(__MINGW32__))
#undef XMLPUBFUN
#undef XMLPUBVAR
#undef XMLCALL
Expand All @@ -60,10 +60,11 @@
#define XMLPUBFUN __declspec(dllexport)
#define XMLPUBVAR __declspec(dllexport)
#else
#define XMLPUBFUN
#if !defined(LIBXML_STATIC)
#define XMLPUBVAR __declspec(dllimport) extern
#define XMLPUBFUN __declspec(dllimport)
#else
#define XMLPUBFUN
#define XMLPUBVAR extern
#endif
#endif
Expand Down Expand Up @@ -102,35 +103,6 @@
#endif
#endif

/* Windows platform with GNU compiler (Mingw) */
#if defined(_WIN32) && defined(__MINGW32__)
#undef XMLPUBFUN
#undef XMLPUBVAR
#undef XMLCALL
#undef XMLCDECL
/*
* if defined(IN_LIBXML) this raises problems on mingw with msys
* _imp__xmlFree listed as missing. Try to workaround the problem
* by also making that declaration when compiling client code.
*/
#if defined(IN_LIBXML) && !defined(LIBXML_STATIC)
#define XMLPUBFUN __declspec(dllexport)
#define XMLPUBVAR __declspec(dllexport) extern
#else
#define XMLPUBFUN
#if !defined(LIBXML_STATIC)
#define XMLPUBVAR __declspec(dllimport) extern
#else
#define XMLPUBVAR extern
#endif
#endif
#define XMLCALL __cdecl
#define XMLCDECL __cdecl
#if !defined _REENTRANT
#define _REENTRANT
#endif
#endif

/* Cygwin platform, GNU compiler */
#if defined(_WIN32) && defined(__CYGWIN__)
#undef XMLPUBFUN
Expand Down
1 change: 1 addition & 0 deletions supportApp/xml2Src/xmllint.c
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
* daniel@veillard.com
*/

#define IN_LIBXML
#include "libxml.h"

#include <string.h>
Expand Down