Windows has its own ftruncate() called _chsize_s(). p_mkstemp() is changed to use p_open() so we can make sure we open for writing; the addition of exclusive create is a good thing to do regardless, as we want a temporary path for ourselves. Lastly, MSVC doesn't quite know how to add two numbers if one of them is a void pointer, so let's alias it to unsigned char.C
| Name |
Last commit
|
Last update |
|---|---|---|
| .. | ||
| dir.c | Loading commit data... | |
| dir.h | Loading commit data... | |
| error.c | Loading commit data... | |
| error.h | Loading commit data... | |
| findfile.c | Loading commit data... | |
| findfile.h | Loading commit data... | |
| git2.rc | Loading commit data... | |
| map.c | Loading commit data... | |
| mingw-compat.h | Loading commit data... | |
| msvc-compat.h | Loading commit data... | |
| posix.h | Loading commit data... | |
| posix_w32.c | Loading commit data... | |
| precompiled.c | Loading commit data... | |
| precompiled.h | Loading commit data... | |
| pthread.c | Loading commit data... | |
| pthread.h | Loading commit data... | |
| reparse.h | Loading commit data... | |
| utf-conv.c | Loading commit data... | |
| utf-conv.h | Loading commit data... | |
| version.h | Loading commit data... | |
| w32_util.c | Loading commit data... | |
| w32_util.h | Loading commit data... |