pkgsrc/graphics/glitz/patches/patch-ab
2007-01-30 20:53:23 +00:00

40 lines
1.3 KiB
Text

$NetBSD: patch-ab,v 1.6 2007/01/30 20:53:23 tv Exp $
--- src/glitzint.h.orig 2006-03-13 08:43:57.000000000 -0500
+++ src/glitzint.h
@@ -51,12 +51,16 @@
#else
# if defined(__OpenBSD__)
# include <inttypes.h>
+# elif defined(__INTERIX)
+# include <sys/types.h>
+# undef uint64_t
+# define uint64_t u_int64_t /* not typedef in case it does exist already */
# else
# include <stdint.h>
# endif
#endif
-#if defined(__APPLE__) || defined(__sun__)
+#if defined(__APPLE__) || defined(__sun)
# define floorf(a) floor (a)
# define ceilf(a) ceil (a)
# define sinf(a) sin (a)
@@ -69,7 +73,7 @@
# define sqrtf(a) sqrt (a)
#endif
-#if __GNUC__ >= 3 && defined(__ELF__)
+#if __GNUC__ >= 3 && defined(__ELF__) && !defined(__sun)
# define slim_hidden_proto(name) slim_hidden_proto1(name, INT_##name)
# define slim_hidden_def(name) slim_hidden_def1(name, INT_##name)
# define slim_hidden_proto1(name, internal) \
@@ -89,7 +93,7 @@
# define slim_hidden_def(name)
#endif
-#if (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 3)) && defined(__ELF__)
+#if (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 3)) && defined(__ELF__) && !defined(__sun)
#define __internal_linkage __attribute__((__visibility__("hidden")))
#else
#define __internal_linkage