mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-22 08:26:27 +00:00
fix missing include
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@23624 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
273f267524
commit
34536a0d18
2 changed files with 6 additions and 2 deletions
|
@ -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 <rfm@gnu.org>
|
||||
|
||||
|
|
|
@ -119,6 +119,9 @@ static NSString *gnustep_flattened =
|
|||
#endif
|
||||
|
||||
#if defined(__MINGW32__)
|
||||
|
||||
#include <lmaccess.h>
|
||||
|
||||
/*
|
||||
* 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)];
|
||||
|
|
Loading…
Reference in a new issue