Apache OpenOffice (AOO) Bugzilla – Attachment #374: tools/inc/solar.h : Patch to remove min/max macro's from c++ for issue #1215
#define SWAPLONG(x) ((((x) >> 24) & 0x000000FF) | (((x) & 0x00FF0000) >> 8) | \
(((x) & 0x0000FF00) << 8) | (((x) & 0x000000FF) << 24))
#ifndef __cplusplus
#ifndef min
#define min(a,b) (((a) < (b)) ? (a) : (b))
#endif
#ifdef BLC
#define __MINMAX_DEFINED