I tweaked the code that is looks like this: #include <math.h>
#ifndef isfinite # ifdef finite # define finite isfinite # endif #endif Then later I have #ifdef isfinite void _normalize_seconds(self, days, secs) I'm hoping this can work better for all systems, since there may be systems besides Win32 that don't provide isfinite() in their math.h. If the XS version of _normalize_seconds doesn't get compiled, then the pure Perl version is used, so the code should continue to work, at least. Patches to do more header loading/macro defining/etc to make the XS code work on more systems are welcome, of course. -dave /*======================= House Absolute Consulting www.houseabsolute.com =======================*/