diff options
author | Mathieu Arnold <mat@FreeBSD.org> | 2016-06-17 23:28:04 +0000 |
---|---|---|
committer | Mathieu Arnold <mat@FreeBSD.org> | 2016-06-17 23:28:04 +0000 |
commit | 1a8a092d9fefcbd7f960c82c59802c61807867a6 (patch) | |
tree | 48e47bf661e0e5d6ed9c060e8aea683b30d4540f /print/ghostscript7-x11/files/patch-src_gxfixed.h | |
parent | - Update to 1.7.1 (diff) |
Rename all files containing a : in their filename.
While there, run make makepatch on affected ports, and rename patches
accordingly.
Sponsored by: Absolight
Notes
Notes:
svn path=/head/; revision=417041
Diffstat (limited to 'print/ghostscript7-x11/files/patch-src_gxfixed.h')
-rw-r--r-- | print/ghostscript7-x11/files/patch-src_gxfixed.h | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/print/ghostscript7-x11/files/patch-src_gxfixed.h b/print/ghostscript7-x11/files/patch-src_gxfixed.h new file mode 100644 index 000000000000..991ab095762e --- /dev/null +++ b/print/ghostscript7-x11/files/patch-src_gxfixed.h @@ -0,0 +1,46 @@ +--- src/gxfixed.h.orig 2003-01-17 00:49:03 UTC ++++ src/gxfixed.h +@@ -27,12 +27,22 @@ + * quantities: integers lose accuracy in crucial places, + * and floating point arithmetic is slow. + */ +-typedef long fixed; +-typedef ulong ufixed; /* only used in a very few places */ +-#define ARCH_SIZEOF_FIXED ARCH_SIZEOF_LONG ++#if ARCH_SIZEOF_INT == 4 ++typedef int fixed; ++typedef uint ufixed; /* only used in a very few places */ ++# define ARCH_SIZEOF_FIXED ARCH_SIZEOF_INT ++# define max_fixed max_int ++# define min_fixed min_int ++#else ++# if ARCH_SIZEOF_LONG == 4 ++ typedef long fixed; ++ typedef ulong ufixed; /* only used in a very few places */ ++# define ARCH_SIZEOF_FIXED ARCH_SIZEOF_LONG ++# define max_fixed max_long ++# define min_fixed min_long ++# endif ++#endif + +-#define max_fixed max_long +-#define min_fixed min_long + #define fixed_0 0L + #define fixed_epsilon 1L + /* +@@ -120,13 +130,8 @@ typedef ulong ufixed; /* only used in a + #define fixed_truncated(x) ((x) < 0 ? fixed_ceiling(x) : fixed_floor(x)) + + /* Define the largest and smallest integer values that fit in a fixed. */ +-#if arch_sizeof_int == arch_sizeof_long +-# define max_int_in_fixed fixed2int(max_fixed) +-# define min_int_in_fixed fixed2int(min_fixed) +-#else +-# define max_int_in_fixed max_int +-# define min_int_in_fixed min_int +-#endif ++#define max_int_in_fixed fixed2int(max_fixed) ++#define min_int_in_fixed fixed2int(min_fixed) + + #ifdef USE_FPU + # define USE_FPU_FIXED (USE_FPU < 0 && arch_floats_are_IEEE && arch_sizeof_long == 4) |