diff options
author | Neal Norwitz <nnorwitz@gmail.com> | 2008-01-25 08:04:16 (GMT) |
---|---|---|
committer | Neal Norwitz <nnorwitz@gmail.com> | 2008-01-25 08:04:16 (GMT) |
commit | 5f95a79b2bf395d114cac2bb74edb6c327ea0a34 (patch) | |
tree | 50c0a4120d74c93a4873f7c6f9e947a202247081 /Objects | |
parent | 769d0eefd75e5d921806caf75450c7c3a706bd1c (diff) | |
download | cpython-5f95a79b2bf395d114cac2bb74edb6c327ea0a34.zip cpython-5f95a79b2bf395d114cac2bb74edb6c327ea0a34.tar.gz cpython-5f95a79b2bf395d114cac2bb74edb6c327ea0a34.tar.bz2 |
Add prototypes to get the mathmodule.c to compile on OSF1 5.1 (Tru64)
and eliminate a compiler warning in floatobject.c. There might be
a better way to go about this, but it should be good enough for now.
Diffstat (limited to 'Objects')
-rw-r--r-- | Objects/floatobject.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Objects/floatobject.c b/Objects/floatobject.c index 340b0e7..fc4dd21 100644 --- a/Objects/floatobject.c +++ b/Objects/floatobject.c @@ -16,6 +16,11 @@ extern double fmod(double, double); extern double pow(double, double); #endif +#ifdef _OSF_SOURCE +/* OSF1 5.1 doesn't make this available with XOPEN_SOURCE_EXTENDED defined */ +extern int finite(double); +#endif + /* Special free list -- see comments for same code in intobject.c. */ #define BLOCK_SIZE 1000 /* 1K less typical malloc overhead */ #define BHEAD_SIZE 8 /* Enough for a 64-bit pointer */ |