MIN macro in numbers.c causes build problems on HP-UX

2004-04-25 Thread Andreas Vögele
On HP-UX, the macros MIN and MAX are defined in sys/param.h which is included by limits.h. There's an unconditional definition of MIN in the CVS version of numbers.c which clashes with HP's definition. Here's the error message: ./guile-snarf -o numbers.x numbers.c -DHAVE_CONFIG_H -I.. -I..

Re: MIN macro in numbers.c causes build problems on HP-UX

2004-04-25 Thread Kevin Ryde
Andreas Vögele [EMAIL PROTECTED] writes: I suggest to remove the MIN macro from numbers.c. Instead, the lower case macro min, which is definded in _scm.h anyway, can be used. Sounds fair. I'm wondering why the MIN macro was introduced at all. I think I missed seeing that min() existed