From 437aa3e266715f50f3d0641d23436fe17f0b5f5d Mon Sep 17 00:00:00 2001 From: Chris Nixon Date: Thu, 19 Mar 2015 08:41:12 +0000 Subject: [PATCH] Add cygwin64 support to wrap_python.hpp --- include/boost/python/detail/wrap_python.hpp | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/include/boost/python/detail/wrap_python.hpp b/include/boost/python/detail/wrap_python.hpp index eaef784..9fdb222 100644 --- a/include/boost/python/detail/wrap_python.hpp +++ b/include/boost/python/detail/wrap_python.hpp @@ -85,13 +85,22 @@ #if defined(_WIN32) || defined(__CYGWIN__) # if defined(__GNUC__) && defined(__CYGWIN__) -# define SIZEOF_LONG 4 +# if defined(__LP64__) +# define SIZEOF_LONG 8 +# else +# define SIZEOF_LONG 4 +# endif + # if PY_MAJOR_VERSION < 2 || PY_MAJOR_VERSION == 2 && PY_MINOR_VERSION <= 2 typedef int pid_t; -# define WORD_BIT 32 +# if defined(__LP64__) +# define WORD_BIT 64 +# else +# define WORD_BIT 32 +# endif # define hypot _hypot # include -- 2.1.4