From c47e23dab60728e8a1c4e4b7db0ba2d3a96b6fbd Mon Sep 17 00:00:00 2001 From: rfm Date: Tue, 26 Sep 2006 11:50:11 +0000 Subject: [PATCH] fix missing include git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@23624 72102866-910b-0410-8b05-ffd578937521 --- ChangeLog | 1 + Source/NSPathUtilities.m | 7 +++++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 6574329dd..bb51a0a0e 100644 --- a/ChangeLog +++ b/ChangeLog @@ -3,6 +3,7 @@ * Source/NSString.m: ([stringByAddingPercentEscapesUsingEncoding:]) Fix to escape '@' (in fact anything not unreserved acording to RFC2396) + * Source/NSPathUtilities.m: Fix missing include. 2006-09-21 Richard Frith-Macdonald diff --git a/Source/NSPathUtilities.m b/Source/NSPathUtilities.m index 7d516e7ff..250a4378f 100644 --- a/Source/NSPathUtilities.m +++ b/Source/NSPathUtilities.m @@ -119,6 +119,9 @@ static NSString *gnustep_flattened = #endif #if defined(__MINGW32__) + +#include + /* * FIXME ... should check access properly if the file is on an NTFS volume. */ @@ -1138,8 +1141,8 @@ NSFullUserName(void) #if defined(__MINGW32__) struct _USER_INFO_2 *userInfo; - NSString *userName = NSUserName(); - if (NetUserGetInfo(NULL, UniBuf(userName), 2, (LPBYTE*)&userInfo) == 0) + if (NetUserGetInfo(NULL, (unichar*)[userName cStringUsingEncoding: + NSUnicodeStringEncoding], 2, (LPBYTE*)&userInfo) == 0) { userName = [NSString stringWithCharacters: userInfo->usri2_full_name length: wcslen(userInfo->usri2_full_name)];