Ticket #11125: 0001-Add-cygwin64-support-to-wrap_python.hpp.patch

File 0001-Add-cygwin64-support-to-wrap_python.hpp.patch, 1.1 KB (added by chris.nixon@…, 8 years ago)
  • include/boost/python/detail/wrap_python.hpp

    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  
    8585#if defined(_WIN32) || defined(__CYGWIN__)
    8686# if defined(__GNUC__) && defined(__CYGWIN__)
    8787
    88 #  define SIZEOF_LONG 4
     88#  if defined(__LP64__)
     89#   define SIZEOF_LONG 8
     90#  else
     91#   define SIZEOF_LONG 4
     92#  endif
     93
    8994
    9095#  if PY_MAJOR_VERSION < 2 || PY_MAJOR_VERSION == 2 && PY_MINOR_VERSION <= 2
    9196
    9297typedef int pid_t;
    9398
    94 #   define WORD_BIT 32
     99#   if defined(__LP64__)
     100#    define WORD_BIT 64
     101#   else
     102#    define WORD_BIT 32
     103#   endif
    95104#   define hypot _hypot
    96105#   include <stdio.h>
    97106