The attached patch removes the use of *PDP_ENDIAN* defines; besides the
two .h files in the patch, nothing uses them.

Please test it on your platform of choice, I'll commit it when I'll be sure
it doesn't break anything.

-- 
Francois Tigeot
>From 804a0660bb66f8453f71768e4407671b2b3b1b6d Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Fran=C3=A7ois=20Tigeot?= <ftig...@wolfpond.org>
Date: Fri, 25 Nov 2011 10:38:14 +0100
Subject: [PATCH] PDP_ENDIAN and variants are unused.

Remove their use from the code.
---
 sal/inc/osl/endian.h |   21 ---------------------
 sal/osl/unx/system.h |   16 ----------------
 2 files changed, 0 insertions(+), 37 deletions(-)

diff --git a/sal/inc/osl/endian.h b/sal/inc/osl/endian.h
index 7069c3b..dace25b 100644
--- a/sal/inc/osl/endian.h
+++ b/sal/inc/osl/endian.h
@@ -61,8 +61,6 @@ extern "C" {
 #           ifndef _BIG_ENDIAN
 #       define _BIG_ENDIAN
 #           endif
-#   elif __BYTE_ORDER == __PDP_ENDIAN
-#       define _PDP_ENDIAN
 #   endif
 #endif
 
@@ -76,8 +74,6 @@ extern "C" {
 #           ifndef _BIG_ENDIAN
 #       define _BIG_ENDIAN
 #           endif
-#   elif __BYTE_ORDER == __PDP_ENDIAN
-#       define _PDP_ENDIAN
 #   endif
 #endif
 
@@ -85,13 +81,8 @@ extern "C" {
 #   include <machine/endian.h>
 #   if BYTE_ORDER == LITTLE_ENDIAN
 #   undef _BIG_ENDIAN
-#   undef _PDP_ENDIAN
 #   elif BYTE_ORDER == BIG_ENDIAN
 #   undef _LITTLE_ENDIAN
-#   undef _PDP_ENDIAN
-#   elif BYTE_ORDER == PDP_ENDIAN
-#   undef _LITTLE_ENDIAN
-#   undef _BIG_ENDIAN
 #   endif
 #endif
 
@@ -103,8 +94,6 @@ extern "C" {
 #       define _LITTLE_ENDIAN
 #   elif BYTE_ORDER == BIG_ENDIAN
 #       define _BIG_ENDIAN
-#   elif BYTE_ORDER == PDP_ENDIAN
-#       define _PDP_ENDIAN
 #   endif
 #endif
 #endif
@@ -119,8 +108,6 @@ extern "C" {
 #       ifndef _BIG_ENDIAN
 #           define _BIG_ENDIAN
 #       endif
-#   elif BYTE_ORDER == PDP_ENDIAN
-#       define _PDP_ENDIAN
 #   endif
 #endif
 
@@ -138,10 +125,6 @@ extern "C" {
 #       ifndef _BIG_ENDIAN
 #       define _BIG_ENDIAN
 #       endif
-#   elif BYTE_ORDER == PDP_ENDIAN
-#       ifndef _PDP_ENDIAN
-#       define _PDP_ENDIAN
-#       endif
 #   endif
 #endif
 
@@ -155,10 +138,6 @@ extern "C" {
 #       ifndef _BIG_ENDIAN
 #       define _BIG_ENDIAN
 #       endif
-#   elif BYTE_ORDER == PDP_ENDIAN
-#       ifndef _PDP_ENDIAN
-#       define _PDP_ENDIAN
-#       endif
 #   endif
 #endif
 
diff --git a/sal/osl/unx/system.h b/sal/osl/unx/system.h
index c8f4871..71b9b31 100644
--- a/sal/osl/unx/system.h
+++ b/sal/osl/unx/system.h
@@ -89,8 +89,6 @@
 #               ifndef _BIG_ENDIAN
 #               define _BIG_ENDIAN
 #               endif
-#   elif __BYTE_ORDER == __PDP_ENDIAN
-#       define _PDP_ENDIAN
 #   endif
 #   define  IORESOURCE_TRANSFER_BSD
 #   define  IOCHANNEL_TRANSFER_BSD_RENO
@@ -142,8 +140,6 @@
 #       define _LITTLE_ENDIAN_OO
 #   elif BYTE_ORDER == BIG_ENDIAN
 #       define _BIG_ENDIAN_OO
-#   elif BYTE_ORDER == PDP_ENDIAN
-#       define _PDP_ENDIAN_OO
 #   endif
 #   define  IORESOURCE_TRANSFER_BSD
 #   define  IOCHANNEL_TRANSFER_BSD_RENO
@@ -179,8 +175,6 @@
 #       define _LITTLE_ENDIAN
 #   elif BYTE_ORDER == BIG_ENDIAN
 #       define _BIG_ENDIAN
-#   elif BYTE_ORDER == PDP_ENDIAN
-#       define _PDP_ENDIAN
 #   endif
 #endif
 #   define  NO_PTHREAD_RTL
@@ -248,8 +242,6 @@
 #       ifndef _BIG_ENDIAN
 #           define _BIG_ENDIAN
 #       endif
-#   elif BYTE_ORDER == PDP_ENDIAN
-#       define _PDP_ENDIAN
 #   endif
 #   define  SLEEP_TIMESPEC(timespec)    nsleep(&timespec, 0)
 #   define  LIBPATH "LIBPATH"
@@ -301,10 +293,6 @@
 #       ifndef _BIG_ENDIAN
 #       define _BIG_ENDIAN
 #       endif
-#   elif BYTE_ORDER == PDP_ENDIAN
-#       ifndef _PDP_ENDIAN
-#       define _PDP_ENDIAN
-#       endif
 #   endif
 #   define  IOCHANNEL_TRANSFER_BSD_RENO
 #   define  NO_PTHREAD_RTL
@@ -341,10 +329,6 @@ int macxp_resolveAlias(char *path, int buflen);
 #       ifndef _BIG_ENDIAN
 #       define _BIG_ENDIAN
 #       endif
-#   elif BYTE_ORDER == PDP_ENDIAN
-#       ifndef _PDP_ENDIAN
-#       define _PDP_ENDIAN
-#       endif
 #   endif
 #   define  IOCHANNEL_TRANSFER_BSD_RENO
 #   define  NO_PTHREAD_RTL
-- 
1.7.6.3

_______________________________________________
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice

Reply via email to