summaryrefslogtreecommitdiff
path: root/lcms2mt
diff options
context:
space:
mode:
Diffstat (limited to 'lcms2mt')
-rw-r--r--lcms2mt/src/lcms2_internal.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/lcms2mt/src/lcms2_internal.h b/lcms2mt/src/lcms2_internal.h
index 129932820..175b3c998 100644
--- a/lcms2mt/src/lcms2_internal.h
+++ b/lcms2mt/src/lcms2_internal.h
@@ -62,7 +62,11 @@
// even though sizeof(void *) is only four: for greatest flexibility
// allow the build to specify ptr alignment.
#ifndef CMS_PTR_ALIGNMENT
-# define CMS_PTR_ALIGNMENT sizeof(void *)
+# if defined(sparc) || defined(__sparc) || defined(__sparc__)
+# define CMS_PTR_ALIGNMENT 8
+# else
+# define CMS_PTR_ALIGNMENT sizeof(void *)
+# endif
#endif
#define _cmsALIGNMEM(x) (((x)+(CMS_PTR_ALIGNMENT - 1)) & ~(CMS_PTR_ALIGNMENT - 1))