summaryrefslogtreecommitdiffstats
path: root/PC/pyconfig.h
diff options
context:
space:
mode:
authorSteve Dower <steve.dower@microsoft.com>2014-12-16 04:45:23 (GMT)
committerSteve Dower <steve.dower@microsoft.com>2014-12-16 04:45:23 (GMT)
commit03a144bb6ac3d7631a3bdb895e2a1f2d021fb08b (patch)
tree3ecded55448b2078f717dc5c0edb2e4c62510073 /PC/pyconfig.h
parent09bd9ec9b3c563915b6428459032de6cda6c1336 (diff)
downloadcpython-03a144bb6ac3d7631a3bdb895e2a1f2d021fb08b.zip
cpython-03a144bb6ac3d7631a3bdb895e2a1f2d021fb08b.tar.gz
cpython-03a144bb6ac3d7631a3bdb895e2a1f2d021fb08b.tar.bz2
#22980 Adds platform and version tags to .pyd files
Diffstat (limited to 'PC/pyconfig.h')
-rw-r--r--PC/pyconfig.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/PC/pyconfig.h b/PC/pyconfig.h
index bd8844f..328be0f 100644
--- a/PC/pyconfig.h
+++ b/PC/pyconfig.h
@@ -145,9 +145,11 @@ WIN32 is still required for the locale module.
#if defined(_M_IA64)
#define COMPILER _Py_PASTE_VERSION("64 bit (Itanium)")
#define MS_WINI64
+#define PYD_PLATFORM_TAG "win_ia64"
#elif defined(_M_X64) || defined(_M_AMD64)
#define COMPILER _Py_PASTE_VERSION("64 bit (AMD64)")
#define MS_WINX64
+#define PYD_PLATFORM_TAG "win_amd64"
#else
#define COMPILER _Py_PASTE_VERSION("64 bit (Unknown)")
#endif
@@ -193,8 +195,10 @@ typedef _W64 int ssize_t;
#if defined(MS_WIN32) && !defined(MS_WIN64)
#if defined(_M_IX86)
#define COMPILER _Py_PASTE_VERSION("32 bit (Intel)")
+#define PYD_PLATFORM_TAG "win32"
#elif defined(_M_ARM)
#define COMPILER _Py_PASTE_VERSION("32 bit (ARM)")
+#define PYD_PLATFORM_TAG "win_arm"
#else
#define COMPILER _Py_PASTE_VERSION("32 bit (Unknown)")
#endif