Apache OpenOffice (AOO) Bugzilla – Issue 15366
silence redefine warnings in osl/endian.h
Last modified: 2004-02-15 07:31:24 UTC
Hi, sal/osl/endian.h defines _BIG_ENDIAN but this define is already part of the gcc spec file (inherently defined in PPC Linux). This generates a warning message about redefining _BIG_ENDIAN any time osl/endian.h is included under PPC Linux which generates a lot of warning messages. So I would like approval to commit the following small patch (it falls all inside a LINUX ifdef block so it is completely Linux specific!) which simply check if the appropriate Endian define already exists to prevent warnings. --- endian.h.~1.4.~ 2003-03-26 11:45:35.000000000 -0500 +++ endian.h 2003-06-06 11:07:59.000000000 -0400 @@ -87,9 +87,13 @@ #ifdef LINUX # include <endian.h> # if __BYTE_ORDER == __LITTLE_ENDIAN +#ifndef _LITTLE_ENDIAN # define _LITTLE_ENDIAN +#endif # elif __BYTE_ORDER == __BIG_ENDIAN +#ifndef _BIG_ENDIAN # define _BIG_ENDIAN +#endif # elif __BYTE_ORDER == __PDP_ENDIAN # define _PDP_ENDIAN # endif Can someone approve this little change? Thanks, Kevin
adding the keyword approval_pending
Hi, Setting release target to OOo 1.1 RC Thanks, kevin
Approved. Please commit.
Hi Ken, Thanks! Committed. Resolving this as fixed. Kevin
verfied in 1.1.0.
close issue