diff options
Diffstat (limited to 'gnulib/import/getlogin_r.c')
-rw-r--r-- | gnulib/import/getlogin_r.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/gnulib/import/getlogin_r.c b/gnulib/import/getlogin_r.c index 799ffa4..a461112 100644 --- a/gnulib/import/getlogin_r.c +++ b/gnulib/import/getlogin_r.c @@ -30,6 +30,9 @@ #if defined _WIN32 && ! defined __CYGWIN__ # define WIN32_LEAN_AND_MEAN # include <windows.h> +/* Don't assume that UNICODE is not defined. */ +# undef GetUserName +# define GetUserName GetUserNameA #else # if !HAVE_DECL_GETLOGIN extern char *getlogin (void); |