File tree Expand file tree Collapse file tree 4 files changed +10
-2
lines changed Expand file tree Collapse file tree 4 files changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -38,6 +38,11 @@ extern "C" {
38
38
#include < pthread.h>
39
39
#include < errno.h>
40
40
#include < dirent.h>
41
+
42
+ #define GCC_VERSION (__GNUC__ * 10000 \
43
+ + __GNUC_MINOR__ * 100 \
44
+ + __GNUC_PATCHLEVEL__)
45
+
41
46
#else
42
47
#error "Platform not supported."
43
48
#endif
Original file line number Diff line number Diff line change 3
3
#define __STDC_LIMIT_MACROS 1
4
4
#endif
5
5
6
- #include < vector>
7
6
#include " rust_internal.h"
8
7
#include " rust_util.h"
9
8
#include " rust_scheduler.h"
10
9
10
+ #include < vector>
11
+
11
12
#define KLOG_ (...) \
12
13
KLOG (this , kern, __VA_ARGS__)
13
14
#define KLOG_ERR_ (field, ...) \
Original file line number Diff line number Diff line change 34
34
// the rust stack and happen frequently enough to catch most stack changes,
35
35
// including at the beginning of all landing pads.
36
36
// FIXME: Enable this for windows
37
- #if defined __linux__ || defined __APPLE__ || defined __FreeBSD__
37
+ #if (defined __linux__ || defined __APPLE__ || defined __FreeBSD__) \
38
+ && (defined(GCC_VERSION) && GCC_VERSION > 40300 )
38
39
extern " C" void
39
40
check_stack_alignment () __attribute__ ((aligned (16 )));
40
41
#else
Original file line number Diff line number Diff line change @@ -43,6 +43,7 @@ template<typename T> class indexed_list {
43
43
}
44
44
virtual int32_t remove (T* value);
45
45
virtual T * operator [](int32_t index);
46
+ virtual ~indexed_list () {}
46
47
};
47
48
48
49
template <typename T> int32_t
You can’t perform that action at this time.
0 commit comments