summaryrefslogtreecommitdiff
path: root/mjit.h
diff options
context:
space:
mode:
authork0kubun <k0kubun@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-10-07 13:34:59 +0000
committerk0kubun <k0kubun@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-10-07 13:34:59 +0000
commitd590027fd24924d33e6858706c3c8235aa19255c (patch)
tree293fa1084ece16788e448a2e8b5ec78b26e9b340 /mjit.h
parent950d1007005a6d3aa961e7b299c99dccd71a2efc (diff)
downloadruby-d590027fd24924d33e6858706c3c8235aa19255c.tar.gz
vm_core.h: fix inconsistent prototype declarations
like "error: static declaration of 'xxx' follows non-static declaration". r64940 is successfully built on mswin but not built on almost all other environments. internal.h: ditto include/ruby/intern.h: MJIT_STATIC is moved to this file since this file also needs to use this. mjit.h: MJIT_STATIC is moved from this. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@64941 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'mjit.h')
-rw-r--r--mjit.h12
1 files changed, 0 insertions, 12 deletions
diff --git a/mjit.h b/mjit.h
index 1a339deaa9..0efa04ac8d 100644
--- a/mjit.h
+++ b/mjit.h
@@ -11,18 +11,6 @@
#include "ruby.h"
-/* On mswin, MJIT header transformation can't be used since cl.exe can't output
- preprocessed output preserving macros. So this `MJIT_STATIC` is needed
- to force non-static function to static on MJIT header to avoid symbol conflict.
- `MJIT_FUNC_EXPORTED` is also changed to `static` on MJIT header for the same reason. */
-#ifdef MJIT_HEADER
-# define MJIT_STATIC static
-# undef MJIT_FUNC_EXPORTED
-# define MJIT_FUNC_EXPORTED static
-#else
-# define MJIT_STATIC
-#endif
-
/* Special address values of a function generated from the
corresponding iseq by MJIT: */
enum rb_mjit_iseq_func {