summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'media-libs/libsdl/files/libsdl-1.2.9-endian-cvs-updates.patch')
-rw-r--r--media-libs/libsdl/files/libsdl-1.2.9-endian-cvs-updates.patch48
1 files changed, 0 insertions, 48 deletions
diff --git a/media-libs/libsdl/files/libsdl-1.2.9-endian-cvs-updates.patch b/media-libs/libsdl/files/libsdl-1.2.9-endian-cvs-updates.patch
deleted file mode 100644
index cd6121a6a091..000000000000
--- a/media-libs/libsdl/files/libsdl-1.2.9-endian-cvs-updates.patch
+++ /dev/null
@@ -1,48 +0,0 @@
-grab some updates from upstream cvs to support some more architectures
-
-Index: include/SDL_byteorder.h
-===================================================================
-RCS file: /home/sdlweb/libsdl.org/cvs/SDL12/include/SDL_byteorder.h,v
-retrieving revision 1.9
-retrieving revision 1.11
-diff -u -p -r1.9 -r1.11
---- include/SDL_byteorder.h 12 Nov 2004 22:09:17 -0000 1.9
-+++ include/SDL_byteorder.h 23 Nov 2005 07:29:53 -0000 1.11
-@@ -34,6 +34,16 @@ static char rcsid =
- #define SDL_LIL_ENDIAN 1234
- #define SDL_BIG_ENDIAN 4321
-
-+#ifdef __linux__
-+# include <endian.h>
-+# if BYTE_ORDER == LITTLE_ENDIAN
-+# define SDL_BYTEORDER SDL_LIL_ENDIAN
-+# else
-+# define SDL_BYTEORDER SDL_BIG_ENDIAN
-+# endif
-+
-+#else
-+
- /* Pardon the mess, I'm trying to determine the endianness of this host.
- I'm doing it by preprocessor defines rather than some sort of configure
- script so that application code can use this too. The "right" way would
-@@ -42,14 +52,16 @@ static char rcsid =
- #if (defined(__i386__) || defined(__i386)) || \
- defined(__ia64__) || defined(WIN32) || \
- (defined(__alpha__) || defined(__alpha)) || \
-- defined(__arm__) || \
-+ (defined(__arm__) || defined(__thumb__)) || \
-+ (defined(__sh__) || defined(__sh64__)) || \
- (defined(__mips__) && defined(__MIPSEL__)) || \
-- defined(__SYMBIAN32__) || \
-- defined(__x86_64__) || \
-- defined(__LITTLE_ENDIAN__)
-+ defined(__SYMBIAN32__) || defined(__x86_64__) || \
-+ defined(__OS2__) || defined(__LITTLE_ENDIAN__)
- #define SDL_BYTEORDER SDL_LIL_ENDIAN
- #else
- #define SDL_BYTEORDER SDL_BIG_ENDIAN
- #endif
-
-+#endif /* __linux__ */
-+
- #endif /* _SDL_byteorder_h */