[Open Office] small patch against speed-ooqstart-x11-only.diff

NAKATA Maho chat95 at mac.com
Mon Jul 3 19:51:50 EDT 2006


Dear kendy,

Could you please apply following patch for ooo-build?
1. endian.h doesn't exist for FreeBSD at least.
2. To avoid such porting issue, OOo itself has "osl/endian.h".
3. in osl/endian.h, we use
_BYTE_ORDER, _LITTLE_ENDIAN, and __BIG_ENDIAN rather than
__BYTE_ORDER, __LITTLE_ENDIAN and __BIG_ENDIAN.

thanks!

--- patches/src680/speed-ooqstart-x11-only.diff.orig	Fri Mar 10 01:56:53 2006
+++ patches/src680/speed-ooqstart-x11-only.diff	Mon Jul  3 22:30:09 2006
@@ -67,7 +67,7 @@
 +#include <X11/Xatom.h>
 +#include <X11/Xutil.h>
 +
-+#include <endian.h>
++#include "osl/endian.h"
 +#include <fcntl.h>
 +#include <stdint.h>
 +#include <stdio.h>
@@ -235,9 +235,9 @@
 +		int bytes_per_line = image->bytes_per_line;
 +		int bpp = image->bits_per_pixel;
 +		int byte_order = image->byte_order; 
-+		int machine_byte_order = ( __BYTE_ORDER == __LITTLE_ENDIAN )? LSBFirst: MSBFirst;
++		int machine_byte_order = ( _BYTE_ORDER == _LITTLE_ENDIAN )? LSBFirst: MSBFirst;
 +
-+		if ( __BYTE_ORDER != __LITTLE_ENDIAN && __BYTE_ORDER != __BIG_ENDIAN )
++		if ( _BYTE_ORDER != _LITTLE_ENDIAN && _BYTE_ORDER != _BIG_ENDIAN )
 +		{
 +			fprintf( stderr, "Unsupported machine endianity.\n" );
 +			XFreeGC( display, pixmap_gc );


-- NAKATA, Maho (maho at FreeBSD.org)


More information about the Openoffice mailing list