Commit e37a1946 authored by Ned Deily's avatar Ned Deily

Fix regression introduced by changeset 7c6e3358221a that caused compile

errors of _testcapimodule.c with older versions of gcc.
parent 7e28df94
...@@ -69,7 +69,7 @@ test_config(PyObject *self) ...@@ -69,7 +69,7 @@ test_config(PyObject *self)
static PyObject* static PyObject*
test_sizeof_c_types(PyObject *self) test_sizeof_c_types(PyObject *self)
{ {
#ifdef __GNUC__ #if defined(__GNUC__) && ((__GNUC__ > 4) || ((__GNUC__ == 4) && (__GNUC_MINOR__ > 5)))
#pragma GCC diagnostic push #pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wtype-limits" #pragma GCC diagnostic ignored "-Wtype-limits"
#endif #endif
...@@ -130,7 +130,7 @@ test_sizeof_c_types(PyObject *self) ...@@ -130,7 +130,7 @@ test_sizeof_c_types(PyObject *self)
#undef IS_SIGNED #undef IS_SIGNED
#undef CHECK_SIGNESS #undef CHECK_SIGNESS
#undef CHECK_SIZEOF #undef CHECK_SIZEOF
#ifdef __GNUC__ #if defined(__GNUC__) && ((__GNUC__ > 4) || ((__GNUC__ == 4) && (__GNUC_MINOR__ > 5)))
#pragma GCC diagnostic pop #pragma GCC diagnostic pop
#endif #endif
} }
......
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