diff options
author | wm4 <wm4@nowhere> | 2019-07-12 15:26:35 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2019-09-19 20:37:05 +0200 |
commit | 98627d3a32e993ebdaa1598834f2057d9952c7e4 (patch) | |
tree | eda12216f45ab46b5c9a354711c8dcd9839c29f3 /osdep/io.h | |
parent | 8576374faad7d56102c9a88bf1e6dffc71f307f5 (diff) | |
download | mpv-98627d3a32e993ebdaa1598834f2057d9952c7e4.tar.bz2 mpv-98627d3a32e993ebdaa1598834f2057d9952c7e4.tar.xz |
io: remove Windows tmpfile() emulation
Unused now. The old stream cache used it, but it was removed.
On a side note, the demuxer cache uses mp_mkostemps(). It looks like our
Windows open() emulation handles this correctly by using CREATE_NEW, so
no functionality gets lost by the "new" approach. On the other hand, the
demuxer cache does not set FILE_FLAG_DELETE_ON_CLOSE, but instead tries
to delete the file after opening (POSIX style), which probably won't
work on Windows. But I'm not sure how to make it use the DELETE_ON_CLOSE
flag, so whatever.
Diffstat (limited to 'osdep/io.h')
-rw-r--r-- | osdep/io.h | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/osdep/io.h b/osdep/io.h index 131f3e2fee..a1c65f18e9 100644 --- a/osdep/io.h +++ b/osdep/io.h @@ -104,7 +104,6 @@ struct dirent *mp_readdir(DIR *dir); int mp_closedir(DIR *dir); int mp_mkdir(const char *path, int mode); char *mp_win32_getcwd(char *buf, size_t size); -FILE *mp_tmpfile(void); char *mp_getenv(const char *name); off_t mp_lseek(int fd, off_t offset, int whence); @@ -161,7 +160,6 @@ void mp_globfree(mp_glob_t *pglob); #define closedir(...) mp_closedir(__VA_ARGS__) #define mkdir(...) mp_mkdir(__VA_ARGS__) #define getcwd(...) mp_win32_getcwd(__VA_ARGS__) -#define tmpfile(...) mp_tmpfile(__VA_ARGS__) #define getenv(...) mp_getenv(__VA_ARGS__) #undef lseek |