diff options
| author | George Hazan <ghazan@miranda.im> | 2018-03-30 22:50:46 +0300 |
|---|---|---|
| committer | George Hazan <ghazan@miranda.im> | 2018-03-30 22:50:46 +0300 |
| commit | 628f23ab62e342bb0b1dddedb563e7f13faf9528 (patch) | |
| tree | 55c97c8453e2dc0036dfa65fb5eb268c886ada13 /plugins/Dbx_mdbx/src/libmdbx/test/osal-windows.cc | |
| parent | 67cd8dbde997606b40bd7dc2712ccc4c66d8d06f (diff) | |
merge with the final version of libmdbx
Diffstat (limited to 'plugins/Dbx_mdbx/src/libmdbx/test/osal-windows.cc')
| -rw-r--r-- | plugins/Dbx_mdbx/src/libmdbx/test/osal-windows.cc | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/plugins/Dbx_mdbx/src/libmdbx/test/osal-windows.cc b/plugins/Dbx_mdbx/src/libmdbx/test/osal-windows.cc index b1a8928cbb..5d2e51a66d 100644 --- a/plugins/Dbx_mdbx/src/libmdbx/test/osal-windows.cc +++ b/plugins/Dbx_mdbx/src/libmdbx/test/osal-windows.cc @@ -305,3 +305,9 @@ void osal_udelay(unsigned us) { } bool osal_istty(int fd) { return _isatty(fd) != 0; } + +std::string osal_tempdir(void) { + char buf[MAX_PATH + 1]; + DWORD len = GetTempPathA(sizeof(buf), buf); + return std::string(buf, len); +} |
