patch-Modules__io__iomodule_h 550 B

1234567891011121314
  1. --- Python-3.1.1.orig/Modules/_io/_iomodule.h 2009-06-12 04:07:12.000000000 +0200
  2. +++ Python-3.1.1/Modules/_io/_iomodule.h 2009-09-16 22:02:30.000000000 +0200
  3. @@ -99,7 +99,10 @@ typedef off_t Py_off_t;
  4. # define PY_OFF_T_MAX LONG_MAX
  5. # define PY_OFF_T_MIN LONG_MIN
  6. #else
  7. -# error off_t does not match either size_t, long, or long long!
  8. +# define PyLong_AsOff_t PyLong_AsSsize_t
  9. +# define PyLong_FromOff_t PyLong_FromSsize_t
  10. +# define PY_OFF_T_MAX PY_SSIZE_T_MAX
  11. +# define PY_OFF_T_MIN PY_SSIZE_T_MIN
  12. #endif
  13. #endif