Skip to content

Commit 8b9fa15

Browse files
committed
Remove defining inline for MVSC because no longer necessary
1 parent 67356e0 commit 8b9fa15

File tree

1 file changed

+0
-14
lines changed

1 file changed

+0
-14
lines changed

setup.py

-14
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import distutils.ccompiler
21
import glob
32
import os
43
import os.path
@@ -127,19 +126,6 @@
127126
# HACK for testing
128127
# gsl_version= ['0','0']
129128

130-
# MSVC: inline does not exist (not C99!); default = not necessarily actual, but will have to do for now...
131-
# Note for the futureL could now get the actual compiler in the BuildExt class
132-
# below
133-
if distutils.ccompiler.get_default_compiler().lower() == "msvc":
134-
extra_compile_args.append("-Dinline=__inline")
135-
# only msvc compiler can be tested with initialize(), msvc is a default on windows
136-
# check for 'msvc' not WIN32, user can use other compiler like 'mingw32', in such case compiler exists for them
137-
try:
138-
test_compiler = distutils.ccompiler.new_compiler()
139-
test_compiler.initialize() # try to initialize a test compiler to see if compiler presented
140-
except PlatformError: # this error will be raised if no compiler in the system
141-
no_compiler = True
142-
143129
# To properly export GSL symbols on Windows, need to defined GSL_DLL and WIN32
144130
if WIN32:
145131
extra_compile_args.append("-DGSL_DLL")

0 commit comments

Comments
 (0)