# | Line 149 | Line 149 | temp_fd(char *s, size_t len, char *templ) | |
---|---|---|
149 | ||
150 | ts = prepare_tmpname(s, len, templ); | |
151 | if (ts == NULL) return -1; | |
152 | < | #ifdef _WIN32 |
152 | > | #if defined(_WIN32) || defined(_WIN64) |
153 | ts = mktemp(ts); | |
154 | if (ts == NULL) return -1; | |
155 | return open(ts, O_CREAT|O_EXCL, S_IRUSR|S_IWUSR); |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |