Skip to content

Commit

Permalink
fix: extern c for environ
Browse files Browse the repository at this point in the history
  • Loading branch information
zaucy committed Aug 22, 2024
1 parent 4ca5168 commit d32182b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion share/cpp2b.cppm.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import std.compat;
#ifdef _MSC_VER
extern char **_environ;
#else
extern char **environ;
extern "C" char **environ;
#endif

export namespace cpp2b {
Expand Down

0 comments on commit d32182b

Please sign in to comment.