Skip to content
Snippets Groups Projects
Commit b6b45ccf authored by Rob Swindell's avatar Rob Swindell :speech_balloon:
Browse files

Create a Win32 wrapper for mkstemp() as MSVC doesn't have it

SBBSecho uses mkstemp() now (instead of tempnam()) - so we need this POSIX function wrapper for Windows builds to succeed.
parent 1b48e7e7
No related branches found
No related tags found
No related merge requests found
......@@ -71,6 +71,8 @@
#define ftello ftell
#endif
#define mkstemp(t) _open(_mktemp(t), O_RDWR | O_CREAT | O_EXCL)
#elif defined(__unix__)
#ifdef __solaris__
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment