Commit b691f8ad authored by Harris Hancock's avatar Harris Hancock Committed by Harris Hancock

s/setenv/putenv when linking to MSVCRT

Microsoft only implements putenv, which has a slightly different syntax.

This change allows CMake to build the entire project on Windows with MinGW
4.8.5.
parent 83b8dccf
......@@ -878,7 +878,11 @@ public:
// concerns.
//
// On Linux, seed 1467142714 (for example) will trigger the exception (without this env var).
#if defined(__MINGW32__) || defined(_MSC_VER)
putenv("CAPNP_IGNORE_ISSUE_344=1");
#else
setenv("CAPNP_IGNORE_ISSUE_344", "1", true);
#endif
srand(seed);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment