From c5b30f3654b40fe7b34099e459013124bd8f1893 Mon Sep 17 00:00:00 2001 From: Oliver Lehmann Date: Wed, 29 Nov 2006 20:38:21 +0000 Subject: make buildable on FreeBSD 4 PR: ports/103769 Approved by: maintainer timeout (62 days) --- .../files/patch-src:xine-engine:xine_internal.h | 65 +++++++++++++++++++--- 1 file changed, 56 insertions(+), 9 deletions(-) (limited to 'multimedia/libxine/files/patch-src:xine-engine:xine_internal.h') diff --git a/multimedia/libxine/files/patch-src:xine-engine:xine_internal.h b/multimedia/libxine/files/patch-src:xine-engine:xine_internal.h index 88f8ce9033a7..c53bb6712627 100644 --- a/multimedia/libxine/files/patch-src:xine-engine:xine_internal.h +++ b/multimedia/libxine/files/patch-src:xine-engine:xine_internal.h @@ -1,7 +1,7 @@ ---- src/xine-engine/xine_internal.h.orig Tue Apr 26 17:09:12 2005 -+++ src/xine-engine/xine_internal.h Sat Apr 30 14:16:33 2005 -@@ -70,6 +70,77 @@ - # include +--- src/xine-engine/xine_internal.h.orig Sat Apr 22 00:46:33 2006 ++++ src/xine-engine/xine_internal.h Thu Sep 28 16:13:27 2006 +@@ -72,6 +72,124 @@ + # include #endif +#ifndef INT8_MIN @@ -28,11 +28,41 @@ +#define INT32_MIN (-0x7fffffff-1) +#endif + ++#ifndef PRIdMAX ++#define PRIdMAX "lld" ++#endif ++ ++#ifndef SCNdMAX ++#define SCNdMAX "lld" ++#endif ++ +#ifndef PRIiMAX -+#define PRIiMAX "lld" ++#define PRIiMAX "lld" +typedef long long intmax_t; +#endif + ++ ++#ifndef PRId32 ++#define PRId32 "d" ++#endif ++ ++#ifndef SCNd32 ++#define SCNd32 "d" ++#endif ++ ++#ifndef PRIdFAST16 ++#define PRIdFAST16 "d" ++#endif ++ ++#ifndef PRIdFAST32 ++#define PRIdFAST32 "d" ++#endif ++ ++#ifndef SCNu32 ++#define SCNu32 "u" ++#endif ++ ++ +#ifndef PRId64 +#if defined(__alpha__) || defined(__amd64__) || defined(__ia64__) || defined(__sparc64__) +#define PRId64 "ld" @@ -41,14 +71,31 @@ +#endif +#endif + -+#ifndef PRIdMAX -+#define PRIdMAX "lld" ++#ifndef SCNd64 ++#define SCNd64 PRId64 ++#endif ++ ++#ifndef PRIu64 ++#if defined(__alpha__) || defined(__amd64__) || defined(__ia64__) || defined(__sparc64__) ++#define PRIu64 "lu" ++#else if defined(__i386__) || defined(__powerpc__) ++#define PRIu64 "llu" ++#endif +#endif + -+#ifndef SCNdMAX -+#define SCNdMAX "lld" ++#ifndef SCNu64 ++#define SCNu64 PRIu64 +#endif + ++#ifndef PRIX64 ++#if defined(__alpha__) || defined(__amd64__) || defined(__ia64__) || defined(__sparc64__) ++#define PRIX64 "lX" ++#else if defined(__i386__) || defined(__powerpc__) ++#define PRIX64 "llX" ++#endif ++#endif ++ ++ +#ifndef PRIx32 +#define PRIx32 "x" +#endif -- cgit v1.2.3