ruby-changes:63685
From: Takashi <ko1@a...>
Date: Sun, 22 Nov 2020 16:46:39 +0900 (JST)
Subject: [ruby-changes:63685] 7ade7a8603 (master): Clarify the intention of the include guard
https://git.ruby-lang.org/ruby.git/commit/?id=7ade7a8603 From 7ade7a8603c2bb3cbf3bbfb9c43fd7acde721802 Mon Sep 17 00:00:00 2001 From: Takashi Kokubun <takashikkbn@g...> Date: Sat, 21 Nov 2020 23:44:48 -0800 Subject: Clarify the intention of the include guard This was a leftover of 27d5af59a359909e0d434459c30cfc0940f60a5b. diff --git a/mjit_worker.c b/mjit_worker.c index 83535cd..d376134 100644 --- a/mjit_worker.c +++ b/mjit_worker.c @@ -1046,7 +1046,7 @@ compile_prelude(FILE *f) https://github.com/ruby/ruby/blob/trunk/mjit_worker.c#L1046 const char *s = pch_file; const char *e = header_name_end(s); -# ifndef _MSC_VER // Visual Studio doesn't expect macro changes around headers. Anyway we don't support compaction there... +# if USE_JIT_COMPACTION fprintf(f, "#ifndef MJIT_PCH\n"); fprintf(f, "#define MJIT_PCH\n"); # endif @@ -1060,7 +1060,7 @@ compile_prelude(FILE *f) https://github.com/ruby/ruby/blob/trunk/mjit_worker.c#L1060 fputc(*s, f); } fprintf(f, "\"\n"); -# ifndef _MSC_VER +# if USE_JIT_COMPACTION fprintf(f, "#endif\n"); # endif #endif -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/