summarylogtreecommitdiffstats
path: root/fix-gcc15.patch
blob: a24a8a1fb2b9b2c9a2b1c0f204d69df94c480e3c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
--- a/galpy/orbit/orbit_c_ext/integrateFullOrbit.h	2025-07-02 10:34:55.000000000 +0800
+++ b/galpy/orbit/orbit_c_ext/integrateFullOrbit.h	2025-07-05 20:44:27.275100791 +0800
@@ -1,3 +1,4 @@
+#include <omp.h>
 #ifndef __INTEGRATEFULLORBIT_H__
 #define __INTEGRATEFULLORBIT_H__
 #ifdef __cplusplus
@@ -17,14 +18,6 @@
   PyMODINIT_FUNC initlibgalpy(void); // Python 2
 #endif
 #endif
-//OpenMP
-#if defined(_OPENMP)
-#include <omp.h>
-#else
-typedef int omp_int_t;
-static inline omp_int_t omp_get_thread_num(void) { return 0;}
-static inline omp_int_t omp_get_max_threads(void) { return 1;}
-#endif
 #ifdef __cplusplus
 }
 #endif