2
0
mirror of https://github.com/boostorg/python.git synced 2026-01-26 18:52:26 +00:00

Add cygwin64 support to wrap_python.hpp

This patch adds 64 bit support.
This commit is contained in:
Chris Nixon
2015-12-09 22:51:46 +01:00
committed by Carl-Erik Kopseng
parent 359b7f0473
commit 77bdbf0432

View File

@@ -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 <stdio.h>