diff options
author | Nick Mathewson <nickm@torproject.org> | 2012-06-07 11:59:32 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2012-06-07 11:59:32 -0400 |
commit | bf9252587b4d7d970f02631b308451fb05ec5560 (patch) | |
tree | 080b02d0945369477200daf70e8b73849fc16715 /src/test/test_util.c | |
parent | 1e5683b167a612bf76d4ae9ba508027e0d473e52 (diff) | |
download | tor-bf9252587b4d7d970f02631b308451fb05ec5560.tar.gz tor-bf9252587b4d7d970f02631b308451fb05ec5560.zip |
Fix mingw build with -DUNICODE -D_UNICODE
This is a very blunt fix, and mostly just turns some func() calls
into FuncA() to make things build again. Fixes bug 6097.
Diffstat (limited to 'src/test/test_util.c')
-rw-r--r-- | src/test/test_util.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/test/test_util.c b/src/test/test_util.c index 4b628ea54d..7484b9e90f 100644 --- a/src/test/test_util.c +++ b/src/test/test_util.c @@ -14,6 +14,10 @@ #include "mempool.h" #include "memarea.h" +#ifdef _WIN32 +#include <tchar.h> +#endif + static void test_util_time(void) { @@ -2113,7 +2117,7 @@ test_util_parent_dir(void *ptr) static void test_util_load_win_lib(void *ptr) { - HANDLE h = load_windows_system_library("advapi32.dll"); + HANDLE h = load_windows_system_library(_T("advapi32.dll")); (void) ptr; tt_assert(h); |