summaryrefslogtreecommitdiff
path: root/numpy
diff options
context:
space:
mode:
Diffstat (limited to 'numpy')
-rw-r--r--numpy/distutils/command/autodist.py9
1 files changed, 1 insertions, 8 deletions
diff --git a/numpy/distutils/command/autodist.py b/numpy/distutils/command/autodist.py
index 1c0dc7db1..61afc0233 100644
--- a/numpy/distutils/command/autodist.py
+++ b/numpy/distutils/command/autodist.py
@@ -46,14 +46,7 @@ main()
def check_gcc_function_attribute(cmd, attribute, name):
"""Return True if the given function attribute is supported."""
cmd._check_compiler()
- body = """
-int %s %s(void*);
-
-int
-main()
-{
-}
-""" % (attribute, name)
+ body = "int %s %s(void*);" % (attribute, name)
ret, output = cmd.try_output_compile(body, None, None)
if not ret or len(output) > 0:
return False