diff options
author | Guido van Rossum <guido@python.org> | 1996-08-08 19:17:45 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1996-08-08 19:17:45 (GMT) |
commit | 99d90c0d0e3716952740eaaa6853be3f6508a7fd (patch) | |
tree | 00f8fc2e219ec509b62965f22f48f04f76e2f13d /Modules | |
parent | 7999a5c525b3c33de579295a3513765c92fc9476 (diff) | |
download | cpython-99d90c0d0e3716952740eaaa6853be3f6508a7fd.zip cpython-99d90c0d0e3716952740eaaa6853be3f6508a7fd.tar.gz cpython-99d90c0d0e3716952740eaaa6853be3f6508a7fd.tar.bz2 |
Include "mymath.h" instead of manually declaring math functions.
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/timemodule.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/Modules/timemodule.c b/Modules/timemodule.c index d8c1b2b..7a8c462 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 <time.h> #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; |