Use `_tempnam` instead of `tempnam` on Windows.

parent a3925f3d
...@@ -3,6 +3,10 @@ ...@@ -3,6 +3,10 @@
#include "mruby.h" #include "mruby.h"
#ifdef _WIN32
#define tempnam _tempnam
#endif
mrb_value mrb_value
mrb_sockettest_tmppath(mrb_state *mrb, mrb_value klass) mrb_sockettest_tmppath(mrb_state *mrb, mrb_value klass)
{ {
......
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