diff options
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 30d8b5216e..ccee38229c 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 e8ac8a2e46..90cdc74195 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"); |