Fix C file generation in jit.bcsave.

Thanks to codicodi.
This commit is contained in:
Mike Pall 2020-01-22 02:37:21 +01:00
parent 38a5ed4b43
commit 62903bacf4

View File

@ -119,7 +119,7 @@ local function bcsave_c(ctx, output, s)
local fp = savefile(output, "w") local fp = savefile(output, "w")
if ctx.type == "c" then if ctx.type == "c" then
fp:write(string.format([[ fp:write(string.format([[
#ifdef _cplusplus #ifdef __cplusplus
extern "C" extern "C"
#endif #endif
#ifdef _WIN32 #ifdef _WIN32