Clang and ICC/ICL: define DIRECT_THREADED

This is most likely only needed on Windows be-
cause __GNUC__ is not defined by both compilers.

It might fail with some unusual configurations.
If that is the case, feel free to open an issue.
This commit is contained in:
cremno
2014-02-11 23:55:52 +01:00
parent d7960bf2a9
commit 8a3a3a5a49
+1 -1
View File
@@ -527,7 +527,7 @@ argnum_error(mrb_state *mrb, int num)
#define CODE_FETCH_HOOK(mrb, irep, pc, regs)
#endif
#ifdef __GNUC__
#if defined __GNUC__ || defined __clang__ || defined __INTEL_COMPILER
#define DIRECT_THREADED
#endif