We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 63323f0 + 77bdbf0 commit 5233f45Copy full SHA for 5233f45
include/boost/python/detail/wrap_python.hpp
@@ -85,13 +85,22 @@
85
#if defined(_WIN32) || defined(__CYGWIN__)
86
# if defined(__GNUC__) && defined(__CYGWIN__)
87
88
-# define SIZEOF_LONG 4
+# if defined(__LP64__)
89
+# define SIZEOF_LONG 8
90
+# else
91
+# define SIZEOF_LONG 4
92
+# endif
93
+
94
95
# if PY_MAJOR_VERSION < 2 || PY_MAJOR_VERSION == 2 && PY_MINOR_VERSION <= 2
96
97
typedef int pid_t;
98
-# define WORD_BIT 32
99
100
+# define WORD_BIT 64
101
102
+# define WORD_BIT 32
103
104
# define hypot _hypot
105
# include <stdio.h>
106
0 commit comments