Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mm2/Little-CMS.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarti Maria <marti.maria@littlecms.com>2022-08-25 10:59:00 +0300
committerMarti Maria <marti.maria@littlecms.com>2022-08-25 10:59:00 +0300
commit89b5f465e5e47d43209b09e4b577b6f09d597cc1 (patch)
tree79c6719a277e082f5253b2014aa52651f9a7ba97
parent1ad1b59b69bb12f93bedf412bd595f4cca69d1f0 (diff)
Remove check on DLL when CMS_NO_REGISTER_KEYWORD is used
That was originally intended to prevent building DLLs with different ABI, but since you can actually build .so on linux with this flaw, makes no sense to check only one platform. I would rather left the decision to developers. You are free to create a .so or DLL with incompatible parameter passing if you use CMS_NO_REGISTER_KEYWORD , it is up to you to check consistency.
-rw-r--r--include/lcms2.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/lcms2.h b/include/lcms2.h
index dca4f64..c72135a 100644
--- a/include/lcms2.h
+++ b/include/lcms2.h
@@ -152,7 +152,7 @@ typedef double cmsFloat64Number;
#endif
// Handle "register" keyword
-#if defined(CMS_NO_REGISTER_KEYWORD) && !defined(CMS_DLL) && !defined(CMS_DLL_BUILD)
+#if defined(CMS_NO_REGISTER_KEYWORD)
# define CMSREGISTER
#else
# define CMSREGISTER register