summaryrefslogtreecommitdiff
path: root/builtin.h
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2020-03-19 13:25:53 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2020-03-19 13:25:53 +0900
commitb6833ff50d2c7188e615839284263cf58cca48b7 (patch)
tree0752758729f7ee55da611f356b34fe72c23a30ec /builtin.h
parenteeb178dc1fe69b5fbf7194d75c0f6ac7e02d4de1 (diff)
Get rid of redefinition of `rb_execution_context_t`
Regardless of the order to include "vm_core.h" and "builtin.h".
Diffstat (limited to 'builtin.h')
-rw-r--r--builtin.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/builtin.h b/builtin.h
index f4d485e08d..ce02720e32 100644
--- a/builtin.h
+++ b/builtin.h
@@ -22,8 +22,9 @@ struct rb_builtin_function {
void rb_load_with_builtin_functions(const char *feature_name, const struct rb_builtin_function *table);
-#ifndef VM_CORE_H_EC_DEFINED
+#ifndef rb_execution_context_t
typedef struct rb_execution_context_struct rb_execution_context_t;
+#define rb_execution_context_t rb_execution_context_t
#endif
/* The following code is generated by the following Ruby script: