[PATCH] PDP_ENDIAN and variants are unused.

François Tigeot ftigeot at wolfpond.org
Fri Nov 25 01:38:14 PST 2011


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


--J2SCkAp4GZ/dPZZf--


More information about the LibreOffice mailing list