Re: M2Crypto build error - _lib.h:5: error: redefinition of typedef 'Py_ssize_t'

Heikki Toivonen <[email protected]>
Newsgroups gmane.comp.python.cryptography
Message-ID <[email protected]>
Philip Kershaw wrote:
> 0.18.2 still breaks for me unfortunately but I can build by commenting out:
> 
> /*
> #if PY_VERSION_HEX < 0x02050000
> typedef int Py_ssize_t;
> #endif
> */

You don't have 0.18.2, because 0.18.2 has this:

#if PY_VERSION_HEX < 0x02050000 && !defined(PY_SSIZE_T_MIN)
typedef int Py_ssize_t;
#define PY_SSIZE_T_MAX INT_MAX
#define PY_SSIZE_T_MIN INT_MIN
#endif

-- 
  Heikki Toivonen
signature.asc (application/pgp-signature, 254 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2.2 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFHE6sCb8x8KoP+JuwRAl6ZAJkBmbhM18Wl5x3IiRZsagqmma36fgCfVEhZ
eIWTzQyBNoii0WgR3U3J2NA=
=iab+
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.