From 91bd3ebd32097d6f26e0ee18b73b27692c171a26 Mon Sep 17 00:00:00 2001 From: Kouhei Sutou Date: Sun, 25 Sep 2016 21:47:32 +0900 Subject: Remove needless MRB_API ref #3215 If a function (such as mrb_read_irep_file()) is declared without MRB_API in header file (such as include/mruby/dump.h), implementation of the function in source file (such as src/load.c) should also defined without MRB_API. If MRB_API is mismatch, Visual C++ reports link error with C2375 error code: https://msdn.microsoft.com/en-us/library/5k6kw95a.aspx --- src/proc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/proc.c') diff --git a/src/proc.c b/src/proc.c index 34037b167..1620bddf8 100644 --- a/src/proc.c +++ b/src/proc.c @@ -135,7 +135,7 @@ mrb_proc_cfunc_env_get(mrb_state *mrb, mrb_int idx) return e->stack[idx]; } -MRB_API void +void mrb_proc_copy(struct RProc *a, struct RProc *b) { a->flags = b->flags; -- cgit v1.2.3