Mercurial > cpython-lru_cache-weakref
annotate Include/mymath.h @ 4566:6403c94de50d legacy-trunk
Added safeguard against failure in __del__.
| author | Guido van Rossum <guido@python.org> |
|---|---|
| date | Wed, 27 Nov 1996 19:39:58 +0000 |
| parents | 315a50cb15e3 |
| children | 2dfc707d6e68 |
| rev | line source |
|---|---|
| 2373 | 1 /* On the 68K Mac, when using CFM (Code Fragment Manager), |
| 2 <math.h> requires special treatment -- we need to surround it with | |
| 3 #pragma lib_export off / on... | |
| 4 This is because MathLib.o is a static library, and exporting its | |
| 5 symbols doesn't quite work... | |
| 6 XXX Not sure now... Seems to be something else going on as well... */ | |
| 7 | |
|
2792
af3aab6b07c4
Changed ifdef __CFM68K__ to ifdef SYMANTEC__CFM68K__: CW has its own
Jack Jansen <jack.jansen@cwi.nl>
parents:
2373
diff
changeset
|
8 #ifdef SYMANTEC__CFM68K__ |
| 2373 | 9 #pragma lib_export off |
| 10 #endif | |
| 11 | |
| 12 #include <math.h> | |
| 13 | |
|
2792
af3aab6b07c4
Changed ifdef __CFM68K__ to ifdef SYMANTEC__CFM68K__: CW has its own
Jack Jansen <jack.jansen@cwi.nl>
parents:
2373
diff
changeset
|
14 #ifdef SYMANTEC__CFM68K__ |
| 2373 | 15 #pragma lib_export on |
| 16 #endif | |
|
3842
210816d348ba
Added extern defn of hypot().
Guido van Rossum <guido@python.org>
parents:
2792
diff
changeset
|
17 |
|
4177
315a50cb15e3
Change comments/#ifdef structure for declaration for hypot().
Guido van Rossum <guido@python.org>
parents:
3961
diff
changeset
|
18 #ifndef HAVE_HYPOT |
|
315a50cb15e3
Change comments/#ifdef structure for declaration for hypot().
Guido van Rossum <guido@python.org>
parents:
3961
diff
changeset
|
19 extern double hypot Py_PROTO((double, double)); |
|
3842
210816d348ba
Added extern defn of hypot().
Guido van Rossum <guido@python.org>
parents:
2792
diff
changeset
|
20 #endif |
