summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorMarti Maria <marti.maria@littlecms.com>2022-11-23 09:33:30 +0100
committerMarti Maria <marti.maria@littlecms.com>2022-11-23 09:33:30 +0100
commitc8ed7427b83df73f3039ef570c48c6b995c2a7ab (patch)
tree13f609fa2a4ddda9ee76e373bf95b72c134a34aa /include
parenta126a78c0dab24eca6c2678caa503d982be02a5e (diff)
downloadlcms2-c8ed7427b83df73f3039ef570c48c6b995c2a7ab.tar.gz
Add MSYS2 MinGW support
both GCC and Clang define __GNUC__ on Windows and understand the visibility attribute
Diffstat (limited to 'include')
-rw-r--r--include/lcms2.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/lcms2.h b/include/lcms2.h
index fd4ac7c..22bf1db 100644
--- a/include/lcms2.h
+++ b/include/lcms2.h
@@ -81,7 +81,7 @@ extern "C" {
#endif
// Version/release
-#define LCMS_VERSION 2140
+#define LCMS_VERSION 2150
// I will give the chance of redefining basic types for compilers that are not fully C99 compliant
#ifndef CMS_BASIC_TYPES_ALREADY_DEFINED
@@ -227,7 +227,7 @@ typedef int cmsBool;
// Calling convention -- this is hardly platform and compiler dependent
-#ifdef CMS_IS_WINDOWS_
+#if defined(CMS_IS_WINDOWS_) && !defined(__GNUC__)
# if defined(CMS_DLL) || defined(CMS_DLL_BUILD)
# ifdef __BORLANDC__
# define CMSEXPORT __stdcall _export