fixed profiler compilation in older python

This commit is contained in:
roberto@freebsd64
2011-05-14 07:08:33 +02:00
parent 9435693865
commit c1ea05b925
2 changed files with 5 additions and 1 deletions
+4
View File
@@ -18,6 +18,10 @@
#define Py_ssize_t ssize_t
#endif
#if PY_MAJOR_VERSION == 2 && PY_MINOR_VERSION < 7
#define HAS_NOT_PyFrame_GetLineNumber
#endif
#if PY_MAJOR_VERSION > 2
#define PYTHREE
#endif