From 437aa3e266715f50f3d0641d23436fe17f0b5f5d Mon Sep 17 00:00:00 2001
From: Chris Nixon <chris.nixon@sigma.me.uk>
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
|
b
|
|
85 | 85 | #if defined(_WIN32) || defined(__CYGWIN__) |
86 | 86 | # if defined(__GNUC__) && defined(__CYGWIN__) |
87 | 87 | |
88 | | # define SIZEOF_LONG 4 |
| 88 | # if defined(__LP64__) |
| 89 | # define SIZEOF_LONG 8 |
| 90 | # else |
| 91 | # define SIZEOF_LONG 4 |
| 92 | # endif |
| 93 | |
89 | 94 | |
90 | 95 | # if PY_MAJOR_VERSION < 2 || PY_MAJOR_VERSION == 2 && PY_MINOR_VERSION <= 2 |
91 | 96 | |
92 | 97 | typedef int pid_t; |
93 | 98 | |
94 | | # define WORD_BIT 32 |
| 99 | # if defined(__LP64__) |
| 100 | # define WORD_BIT 64 |
| 101 | # else |
| 102 | # define WORD_BIT 32 |
| 103 | # endif |
95 | 104 | # define hypot _hypot |
96 | 105 | # include <stdio.h> |
97 | 106 | |