Commit cb76b146 authored by Deucе's avatar Deucе 👌🏾
Browse files

Add DISABLE_MKSTEMP_DEFINE support

This macro as written won't compile on mingw32 due to the attributes
on _mktemp().  This could be worked around, but it's easier to just
disable it since I don't need it, and nobody else is building with
mingw32.
parent 24a76496
Pipeline #2751 passed with stage
in 9 minutes and 28 seconds
...@@ -71,7 +71,9 @@ ...@@ -71,7 +71,9 @@
#define ftello ftell #define ftello ftell
#endif #endif
#ifndef DISABLE_MKSTEMP_DEFINE
#define mkstemp(t) _open(_mktemp(t), O_RDWR | O_CREAT | O_EXCL) #define mkstemp(t) _open(_mktemp(t), O_RDWR | O_CREAT | O_EXCL)
#endif
#elif defined(__unix__) #elif defined(__unix__)
......
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