14 lines
537 B
Diff
14 lines
537 B
Diff
diff --git a/numpy/core/setup.py b/numpy/core/setup.py
|
|
index 2ec5e1a..25e03b8 100644
|
|
--- a/numpy/core/setup.py
|
|
+++ b/numpy/core/setup.py
|
|
@@ -395,7 +395,7 @@ def visibility_define(config):
|
|
"""Return the define value to use for NPY_VISIBILITY_HIDDEN (may be empty
|
|
string)."""
|
|
hide = '__attribute__((visibility("hidden")))'
|
|
- if config.check_gcc_function_attribute(hide, 'hideme'):
|
|
+ if config.check_gcc_function_attribute(hide, 'hideme') and sys.platform != "win32":
|
|
return hide
|
|
else:
|
|
return ''
|