Commit 99d90c0d authored by Guido van Rossum's avatar Guido van Rossum

Include "mymath.h" instead of manually declaring math functions.

parent 7999a5c5
...@@ -28,6 +28,10 @@ OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. ...@@ -28,6 +28,10 @@ OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
#include "modsupport.h" #include "modsupport.h"
#include "ceval.h" #include "ceval.h"
#ifdef HAVE_SELECT
#include "mymath.h"
#endif
#ifdef macintosh #ifdef macintosh
#include <time.h> #include <time.h>
#else #else
...@@ -415,8 +419,6 @@ floatsleep(secs) ...@@ -415,8 +419,6 @@ floatsleep(secs)
#ifdef HAVE_SELECT #ifdef HAVE_SELECT
struct timeval t; struct timeval t;
double frac; double frac;
extern double fmod PROTO((double, double));
extern double floor PROTO((double));
frac = fmod(secs, 1.0); frac = fmod(secs, 1.0);
secs = floor(secs); secs = floor(secs);
t.tv_sec = (long)secs; t.tv_sec = (long)secs;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment