diff --git a/setup.py b/setup.py index 46666608d477607eca6847d72a0d73738c1f74e2..c3e5971b8b193bb187c9cef88ea4680ec2423d0e 100644 --- a/setup.py +++ b/setup.py @@ -95,7 +95,7 @@ class BuildExt(build_ext): def build_extensions(self): ct = self.compiler.compiler_type opts = self.c_opts.get(ct, []) - if ct == 'unix': + if ct in ['unix', 'mingw32']: opts.append('-DVERSION_INFO="%s"' % self.distribution.get_version()) opts.append(cpp_flag(self.compiler)) if has_flag(self.compiler, '-fvisibility=hidden'):