diff options
author | agc <agc> | 2002-03-15 09:20:04 +0000 |
---|---|---|
committer | agc <agc> | 2002-03-15 09:20:04 +0000 |
commit | 9f5af81cbdbc92a8f08ad915cd1ffb369374a16f (patch) | |
tree | b75dd152bf27696714731baa72935ef6a56f8c1a /graphics/lcms/patches | |
parent | 32b86f2d99178da2c82edbff204d7ddea62b418e (diff) | |
download | pkgsrc-9f5af81cbdbc92a8f08ad915cd1ffb369374a16f.tar.gz |
Do the previous change a bit differently.
NetBSD 1.5.x (including 1.5.2) doesn't have the C99 types, so use
u_int64_t if we're on a 4.4-based platform, uint64_t otherwise.
Diffstat (limited to 'graphics/lcms/patches')
-rw-r--r-- | graphics/lcms/patches/patch-ab | 19 |
1 files changed, 16 insertions, 3 deletions
diff --git a/graphics/lcms/patches/patch-ab b/graphics/lcms/patches/patch-ab index a39bf799387..62c612156f6 100644 --- a/graphics/lcms/patches/patch-ab +++ b/graphics/lcms/patches/patch-ab @@ -1,13 +1,26 @@ -$NetBSD: patch-ab,v 1.2 2002/03/15 03:58:45 markd Exp $ +$NetBSD: patch-ab,v 1.3 2002/03/15 09:20:06 agc Exp $ --- source/cmsmtrx.c Thu May 18 18:08:13 2000 +++ source/cmsmtrx.c Mon Oct 30 09:53:39 2000 -@@ -33,2 +33,3 @@ +@@ -31,6 +31,7 @@ + // Vector & Matrix stuff + #include "lcms.h" +#include <sys/types.h> -@@ -250,3 +251,3 @@ + + void cdecl VEC3init(LPVEC3 r, double x, double y, double z); +@@ -248,7 +249,12 @@ + // If newest __int64 defined, then use it + #ifdef USE_INT64 - __int64 l = (__int64) a * b + 0x8000i64; ++#include <sys/param.h> ++#if (defined(BSD) && BSD >= 199506) ++ u_int64_t l = (uint64_t) a * b + (uint64_t)0x8000; ++#else + uint64_t l = (uint64_t) a * b + (uint64_t)0x8000; ++#endif return (Fixed32) (l >> 16); + #else + return DOUBLE_TO_FIXED(FIXED_TO_DOUBLE(a) * FIXED_TO_DOUBLE(b)); |