--- a/setupinfo.py
+++ b/setupinfo.py
@@ -7,6 +7,7 @@
 from setuptools.command.build_ext import build_ext as _build_ext
 from distutils.core import Extension
 from distutils.errors import CompileError, DistutilsOptionError
+from distutils.util import get_platform
 from versioninfo import get_base_dir
 
 try:
@@ -271,7 +272,7 @@
         standard_libs.append('z')
     standard_libs.append('m')
 
-    if sys.platform in ('win32',):
+    if get_platform().startswith('win'):
         libs = ['libxslt', 'libexslt', 'libxml2', 'iconv']
         if OPTION_STATIC:
             libs = ['%s_a' % lib for lib in libs]
