summaryrefslogtreecommitdiff
path: root/setup.py
diff options
context:
space:
mode:
authorGiampaolo Rodola' <g.rodola@gmail.com>2013-10-22 19:10:20 +0100
committerGiampaolo Rodola' <g.rodola@gmail.com>2013-10-22 19:10:20 +0100
commitee765d02fd379f14908409baba40e239224ccd43 (patch)
treee61a2fe9971682141672fc1a08390c3bb65527cf /setup.py
parentb1613b3538b83e9ac03707f09d70c92df386e8e1 (diff)
downloadpsutil-ee765d02fd379f14908409baba40e239224ccd43.tar.gz
revert revision Revision: 6f21cd24ff7c: _WIN32_WINNT and _AVAIL_WINVER_ macros were there for a reason that is make mingw happyrelease-1.1.2
Diffstat (limited to 'setup.py')
-rw-r--r--setup.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/setup.py b/setup.py
index a5f5be37..ed0aeafe 100644
--- a/setup.py
+++ b/setup.py
@@ -108,7 +108,10 @@ if sys.platform.startswith("win32"):
'psutil/arch/mswindows/security.c',
],
define_macros=[
- ('PSUTIL_WINVER', get_winver()),
+ # be nice to mingw, see:
+ # http://www.mingw.org/wiki/Use_more_recent_defined_functions
+ ('_WIN32_WINNT', get_winver()),
+ ('_AVAIL_WINVER_', get_winver()),
],
libraries=[
"psapi", "kernel32", "advapi32", "shell32", "netapi32", "iphlpapi",