Skip to content

Commit 62903ba

Browse files
author
Mike Pall
committed
Fix C file generation in jit.bcsave.
Thanks to codicodi.
1 parent 38a5ed4 commit 62903ba

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/jit/bcsave.lua

+1-1
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ local function bcsave_c(ctx, output, s)
119119
local fp = savefile(output, "w")
120120
if ctx.type == "c" then
121121
fp:write(string.format([[
122-
#ifdef _cplusplus
122+
#ifdef __cplusplus
123123
extern "C"
124124
#endif
125125
#ifdef _WIN32

0 commit comments

Comments
 (0)