File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed
Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -350,10 +350,12 @@ template <> struct select_npy_type<uint64_t> { const static NPY_TYPES type = NPY
350350
351351// Sanity checks; comment them out or change the numpy type below if you're compiling on
352352// a platform where they don't apply
353- static_assert (sizeof (long long ) == 8 );
354- template <> struct select_npy_type <long long > { const static NPY_TYPES type = NPY_INT64; };
355- static_assert (sizeof (unsigned long long ) == 8 );
356- template <> struct select_npy_type <unsigned long long > { const static NPY_TYPES type = NPY_UINT64; };
353+ #ifdef __linux__
354+ static_assert (sizeof (long long ) == 8);
355+ template <> struct select_npy_type <long long > { const static NPY_TYPES type = NPY_INT64; };
356+ static_assert (sizeof (unsigned long long ) == 8);
357+ template <> struct select_npy_type <unsigned long long > { const static NPY_TYPES type = NPY_UINT64; };
358+ #endif
357359
358360template <typename Numeric>
359361PyObject* get_array (const std::vector<Numeric>& v)
You can’t perform that action at this time.
0 commit comments