Fix alignment issue on hppa (and other 32-bit architectures the require
double-precision floating-point numbers to be aligned on a 64-bit boundary). ok ajacoutot@
This commit is contained in:
parent
f3df9c1650
commit
d3d270a70e
@ -1,8 +1,9 @@
|
||||
# $OpenBSD: Makefile,v 1.9 2014/04/13 09:49:57 ajacoutot Exp $
|
||||
# $OpenBSD: Makefile,v 1.10 2014/06/30 11:53:31 kettenis Exp $
|
||||
|
||||
COMMENT = color management library
|
||||
|
||||
DISTNAME = lcms2-2.6
|
||||
REVISION = 0
|
||||
CATEGORIES = graphics
|
||||
MASTER_SITES = ${MASTER_SITE_SOURCEFORGE:=lcms/}
|
||||
|
||||
|
14
graphics/lcms2/patches/patch-src_lcms2_internal_h
Normal file
14
graphics/lcms2/patches/patch-src_lcms2_internal_h
Normal file
@ -0,0 +1,14 @@
|
||||
$OpenBSD: patch-src_lcms2_internal_h,v 1.3 2014/06/30 11:53:31 kettenis Exp $
|
||||
--- src/lcms2_internal.h.orig Mon Mar 17 17:09:30 2014
|
||||
+++ src/lcms2_internal.h Sun Jun 29 14:32:06 2014
|
||||
@@ -56,8 +56,8 @@
|
||||
// Alignment of ICC file format uses 4 bytes (cmsUInt32Number)
|
||||
#define _cmsALIGNLONG(x) (((x)+(sizeof(cmsUInt32Number)-1)) & ~(sizeof(cmsUInt32Number)-1))
|
||||
|
||||
-// Alignment to memory pointer
|
||||
-#define _cmsALIGNMEM(x) (((x)+(sizeof(void *) - 1)) & ~(sizeof(void *) - 1))
|
||||
+// Alignment to double
|
||||
+#define _cmsALIGNMEM(x) (((x)+(sizeof(double) - 1)) & ~(sizeof(double) - 1))
|
||||
|
||||
// Maximum encodeable values in floating point
|
||||
#define MAX_ENCODEABLE_XYZ (1.0 + 32767.0/32768.0)
|
Loading…
x
Reference in New Issue
Block a user