evil: Add mkstemp macro for MSVC compatibility

This commit is contained in:
Felipe Magno de Almeida 2020-12-14 22:23:30 -03:00
parent 733420f799
commit 191cb43c81
1 changed files with 10 additions and 0 deletions

View File

@ -82,6 +82,16 @@ EVIL_API int unsetenv(const char *name);
*/
EVIL_API char *mkdtemp(char *__template);
/**
* @brief Create a unique temporary file name.
*
* @param __template Template of the file to create.
* @return A file descriptor on success, -1 otherwise.
*
* @since ????
*/
#define mkstemp(__template) mkstemps(__template, 0)
/**
* @brief Create a unique temporary file name with a suffix.
*