summaryrefslogtreecommitdiff
path: root/PC/pyconfig.h
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2013-06-04 23:56:38 +0200
committerVictor Stinner <victor.stinner@gmail.com>2013-06-04 23:56:38 +0200
commit2ed134739e322e51d0cf495b6969affe829bed43 (patch)
tree1dde9b2877db24e3addf27deef0c22cbdf6a852a /PC/pyconfig.h
parentcd70a417785125183f6b1256f02da3b9b808dcfc (diff)
downloadcpython-2ed134739e322e51d0cf495b6969affe829bed43.tar.gz
Close #17931: Fix PyLong_FromPid() on Windows 64-bit: processes are identified
by their HANDLE which is a pointer (and not a long, which is smaller).
Diffstat (limited to 'PC/pyconfig.h')
-rw-r--r--PC/pyconfig.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/PC/pyconfig.h b/PC/pyconfig.h
index c5f16e580f..8c4c7f3fa5 100644
--- a/PC/pyconfig.h
+++ b/PC/pyconfig.h
@@ -723,6 +723,9 @@ Py_NO_ENABLE_SHARED to find out. Also support MS_NO_COREDLL for b/w compat */
/* The size of `wchar_t', as computed by sizeof. */
#define SIZEOF_WCHAR_T 2
+/* The size of `pid_t' (HANDLE). */
+#define SIZEOF_PID_T SIZEOF_VOID_P
+
/* Define if you have the dl library (-ldl). */
/* #undef HAVE_LIBDL */