[Open Office] VBA part build failure..on FreeBSD

Hubert Figuiere hfiguiere at novell.com
Fri Jun 22 12:01:13 EDT 2007


On Fri, 2007-06-22 at 09:36 +0100, Noel Power wrote:
> > ----------
> > actually following part is the essential:
> > 
> > /work/ports/editors/ooo-build/work/OOF680_m18/sc/source/ui/vba/vbaaxis.cxx:50:68: macro "MIN" requires 2 arguments, but only 1 given
> > /work/ports/editors/ooo-build/work/OOF680_m18/sc/source/ui/vba/vbaaxis.cxx:51:68: macro "MAX" requires 2 arguments, but only 1 given
> hmmm, it would the compiler/included files combination results in
> macro(s) MIN and MAX ( from where I wonder? )  conflicting with the
> local definitions, I would change MIN & MAX to something like MIN_VAL
> &
> MAX_VAL ( and also change the value, "AutoOrigin" which is clearly ...
> wrong ) I presume this is some variant of ooo-build ? let me know if
> this fixes it for you, then I will fix it here ( /me has too many
> different branches ooo-build, cws versions etc. to track ) 

Lot of includes define MIN and MAX as macro to return the minimum or
maximum of the 2 parameters.

So yeah it would be better to use something for values.

And also recommend using std::min and std::max instead of the macros.


Hub



More information about the Openoffice mailing list