ghostscript.patch 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. Index: base/gsropt.h
  2. --- base/gsropt.h.orig 2011-03-11 06:45:19.000000000 +0100
  3. +++ base/gsropt.h 2011-04-02 22:59:43.000000000 +0200
  4. @@ -379,17 +379,6 @@
  5. #elif defined(__GNUC__) /* Are we using GCC? */
  6. -#ifdef __i386__ /* Are we on an x86? */
  7. -#define GCC_VERSION (__GNUC__ * 10000 + __GNUC_MINOR__ * 100 + __GNUC_PATCHLEVEL__)
  8. -#if GCC_VERSION >= 40300 /* Modern enough to have byteswap intrinsics? */
  9. -
  10. -#include <byteswap.h>
  11. -
  12. -#define ENDIAN_SWAP_INT bswap_32
  13. -
  14. -#endif /* GCC >= 4.3 */
  15. -#endif /* x86 or later */
  16. -
  17. #endif
  18. #endif /* gsropt_INCLUDED */
  19. Index: base/stdint_.h
  20. --- base/stdint_.h.orig 2010-07-30 13:03:27.000000000 +0200
  21. +++ base/stdint_.h 2011-04-02 22:55:44.000000000 +0200
  22. @@ -68,6 +68,13 @@
  23. typedef unsigned long long uint64_t;
  24. # define STDINT_TYPES_DEFINED
  25. # endif
  26. +#ifdef __sun__
  27. +# include <sys/int_types.h>
  28. +# define STDINT_TYPES_DEFINED
  29. +#endif
  30. +#ifdef __FreeBSD__
  31. +# define STDINT_TYPES_DEFINED
  32. +#endif
  33. /* other archs may want to add defines here,
  34. or use the fallbacks in std.h */
  35. #endif