diff options
| author | Edward Thomson <ethomson@edwardthomson.com> | 2015-07-02 09:25:48 -0500 |
|---|---|---|
| committer | Edward Thomson <ethomson@edwardthomson.com> | 2015-07-02 16:35:43 +0000 |
| commit | e069c621bdd62e603b048eb536f5a978a905b310 (patch) | |
| tree | e3fa76833856f675d8eda911059a254465cfdf75 /src/win32/posix_w32.c | |
| parent | aa92c318a235cc6a5230682b9c071eb35f9c5f4c (diff) | |
| download | libgit2-e069c621bdd62e603b048eb536f5a978a905b310.tar.gz | |
git__getenv: utf-8 aware env reader
Introduce `git__getenv` which is a UTF-8 aware `getenv` everywhere.
Make `cl_getenv` use this to keep consistent memory handling around
return values (free everywhere, as opposed to only some platforms).
Diffstat (limited to 'src/win32/posix_w32.c')
| -rw-r--r-- | src/win32/posix_w32.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/win32/posix_w32.c b/src/win32/posix_w32.c index 504562b0e..c909af6cc 100644 --- a/src/win32/posix_w32.c +++ b/src/win32/posix_w32.c @@ -11,6 +11,8 @@ #include "utf-conv.h" #include "repository.h" #include "reparse.h" +#include "global.h" +#include "buffer.h" #include <errno.h> #include <io.h> #include <fcntl.h> |
