From: Guido van Rossum Date: Thu, 8 Aug 1996 19:17:45 +0000 (+0000) Subject: Include "mymath.h" instead of manually declaring math functions. X-Git-Tag: v1.4b3~178 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=99d90c0d0e3716952740eaaa6853be3f6508a7fd;p=python Include "mymath.h" instead of manually declaring math functions. --- diff --git a/Modules/timemodule.c b/Modules/timemodule.c index d8c1b2b027..7a8c462ad5 100644 --- a/Modules/timemodule.c +++ b/Modules/timemodule.c @@ -28,6 +28,10 @@ OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. #include "modsupport.h" #include "ceval.h" +#ifdef HAVE_SELECT +#include "mymath.h" +#endif + #ifdef macintosh #include #else @@ -415,8 +419,6 @@ floatsleep(secs) #ifdef HAVE_SELECT struct timeval t; double frac; - extern double fmod PROTO((double, double)); - extern double floor PROTO((double)); frac = fmod(secs, 1.0); secs = floor(secs); t.tv_sec = (long)secs;