Skip to content
Snippets Groups Projects
Commit 27c79cad 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 1031d0f6
No related branches found
No related tags found
1 merge request!463MRC mods by Codefenix (2024-10-20)
Pipeline #2260 passed
......@@ -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.
Please register or to comment