Skip to content
Snippets Groups Projects
Commit 800c7e642909 authored by Bob Ippolito's avatar Bob Ippolito
Browse files

Py_IS_FINITE for Python 2.4

git-svn-id: http://simplejson.googlecode.com/svn/trunk@138 a4795897-2c25-0410-b006-0d3caba88fa1
parent c971a3dbca08
No related branches found
No related tags found
No related merge requests found
......@@ -10,6 +10,9 @@
#define PyInt_FromSsize_t PyInt_FromLong
#define PyInt_AsSsize_t PyInt_AsLong
#endif
#ifndef Py_IS_FINITE
#define Py_IS_FINITE(X) (!Py_IS_INFINITY(X) && !Py_IS_NAN(X))
#endif
#ifdef __GNUC__
#define UNUSED __attribute__((__unused__))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment