diff options
author | Skip Montanaro <skip@pobox.com> | 2009-10-18 14:25:35 (GMT) |
---|---|---|
committer | Skip Montanaro <skip@pobox.com> | 2009-10-18 14:25:35 (GMT) |
commit | ba1e0f46ab5a83be1a367b0eadb2f783e06228b3 (patch) | |
tree | dd688b778427cfdd6e4786322fd6ede99fd6bfbb /Objects | |
parent | 6ead552b47ecc4e7d85a03b3b662c6d46e59bec3 (diff) | |
download | cpython-ba1e0f46ab5a83be1a367b0eadb2f783e06228b3.zip cpython-ba1e0f46ab5a83be1a367b0eadb2f783e06228b3.tar.gz cpython-ba1e0f46ab5a83be1a367b0eadb2f783e06228b3.tar.bz2 |
Issue 7147 - remove ability to attempt to build Python without complex number support (was broken anyway)
Diffstat (limited to 'Objects')
-rw-r--r-- | Objects/complexobject.c | 4 | ||||
-rw-r--r-- | Objects/object.c | 3 |
2 files changed, 1 insertions, 6 deletions
diff --git a/Objects/complexobject.c b/Objects/complexobject.c index 30d8b52..ccee382 100644 --- a/Objects/complexobject.c +++ b/Objects/complexobject.c @@ -12,8 +12,6 @@ #include <ieeefp.h> #endif -#ifndef WITHOUT_COMPLEX - /* elementary operations on complex numbers */ static Py_complex c_1 = {1., 0.}; @@ -1108,5 +1106,3 @@ PyTypeObject PyComplex_Type = { complex_new, /* tp_new */ PyObject_Del, /* tp_free */ }; - -#endif diff --git a/Objects/object.c b/Objects/object.c index e8ac8a2..90cdc74 100644 --- a/Objects/object.c +++ b/Objects/object.c @@ -1536,10 +1536,9 @@ _Py_ReadyTypes(void) if (PyType_Ready(&PyStaticMethod_Type) < 0) Py_FatalError("Can't initialize static method type"); -#ifndef WITHOUT_COMPLEX if (PyType_Ready(&PyComplex_Type) < 0) Py_FatalError("Can't initialize complex type"); -#endif + if (PyType_Ready(&PyFloat_Type) < 0) Py_FatalError("Can't initialize float type"); |