diff options
author | Robin Watts <Robin.Watts@artifex.com> | 2021-08-27 15:57:43 +0100 |
---|---|---|
committer | Robin Watts <Robin.Watts@artifex.com> | 2021-08-27 16:10:13 +0100 |
commit | 296fa46d346c6ea19269a2ccaf0223cd008be067 (patch) | |
tree | 475e6e9f7b21dc59326230954192d6ffc839a9d1 /lcms2mt | |
parent | 2f76fdcdad0693bec88864a3a5dd537ceee9a1d4 (diff) | |
download | ghostpdl-296fa46d346c6ea19269a2ccaf0223cd008be067.tar.gz |
Fix inline declaration for lcms2mt.
This restores building with VS2008.
Diffstat (limited to 'lcms2mt')
-rw-r--r-- | lcms2mt/src/cmsxform.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lcms2mt/src/cmsxform.c b/lcms2mt/src/cmsxform.c index d57972a49..689656f9a 100644 --- a/lcms2mt/src/cmsxform.c +++ b/lcms2mt/src/cmsxform.c @@ -352,7 +352,7 @@ void NullFloatXFORM(cmsContext ContextID, _cmsTRANSFORM* p, } } -static inline int mul255(cmsUInt32Number a, cmsUInt32Number b) +cmsINLINE int mul255(cmsUInt32Number a, cmsUInt32Number b) { /* see Jim Blinn's book "Dirty Pixels" for how this works */ cmsUInt32Number x = a * b + 128; @@ -360,7 +360,7 @@ static inline int mul255(cmsUInt32Number a, cmsUInt32Number b) return x >> 8; } -static inline cmsUInt32Number mul65535(cmsUInt32Number a, cmsUInt32Number b) +cmsINLINE cmsUInt32Number mul65535(cmsUInt32Number a, cmsUInt32Number b) { /* see Jim Blinn's book "Dirty Pixels" for how this works */ cmsUInt32Number x = a * b + 0x8000; |