diff --git a/pyqint/integrals.h b/pyqint/integrals.h index d29be64..7540d51 100644 --- a/pyqint/integrals.h +++ b/pyqint/integrals.h @@ -27,10 +27,6 @@ #include #include -#if defined(__GNUG__) || defined(_MSC_VER) -#include -#endif - #include "gamma.h" #include "cgf.h" #include "factorials.h" diff --git a/setup.py b/setup.py index 53100f1..e82312f 100644 --- a/setup.py +++ b/setup.py @@ -75,12 +75,15 @@ def find_windows_versions(): os.environ['PATH'] = ";".join(newpaths) # specify compilation instructions for other platforms -if os.name == 'posix': +if os.name == 'posix' and sys.platform != 'darwin': extra_compile_args = ["-Wno-date-time", "-fopenmp", "-fPIC"] extra_link_args = ["-fopenmp"] -else: +elif os.name == 'nt': extra_compile_args = ["/openmp"] extra_link_args = [] +elif sys.platform == 'darwin': + extra_compile_args = ["-Wno-date-time", "-fPIC", "-std=c++14"] + extra_link_args = [] ext_modules = [ Extension(