mirror of
https://github.com/gnustep/libs-base.git
synced 2025-06-01 09:02:01 +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
452976f6a3
commit
c47e23dab6
2 changed files with 6 additions and 2 deletions
|
@ -3,6 +3,7 @@
|
||||||
* Source/NSString.m: ([stringByAddingPercentEscapesUsingEncoding:])
|
* Source/NSString.m: ([stringByAddingPercentEscapesUsingEncoding:])
|
||||||
Fix to escape '@' (in fact anything not unreserved acording to
|
Fix to escape '@' (in fact anything not unreserved acording to
|
||||||
RFC2396)
|
RFC2396)
|
||||||
|
* Source/NSPathUtilities.m: Fix missing include.
|
||||||
|
|
||||||
2006-09-21 Richard Frith-Macdonald <rfm@gnu.org>
|
2006-09-21 Richard Frith-Macdonald <rfm@gnu.org>
|
||||||
|
|
||||||
|
|
|
@ -119,6 +119,9 @@ static NSString *gnustep_flattened =
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(__MINGW32__)
|
#if defined(__MINGW32__)
|
||||||
|
|
||||||
|
#include <lmaccess.h>
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* FIXME ... should check access properly if the file is on an NTFS volume.
|
* FIXME ... should check access properly if the file is on an NTFS volume.
|
||||||
*/
|
*/
|
||||||
|
@ -1138,8 +1141,8 @@ NSFullUserName(void)
|
||||||
#if defined(__MINGW32__)
|
#if defined(__MINGW32__)
|
||||||
struct _USER_INFO_2 *userInfo;
|
struct _USER_INFO_2 *userInfo;
|
||||||
|
|
||||||
NSString *userName = NSUserName();
|
if (NetUserGetInfo(NULL, (unichar*)[userName cStringUsingEncoding:
|
||||||
if (NetUserGetInfo(NULL, UniBuf(userName), 2, (LPBYTE*)&userInfo) == 0)
|
NSUnicodeStringEncoding], 2, (LPBYTE*)&userInfo) == 0)
|
||||||
{
|
{
|
||||||
userName = [NSString stringWithCharacters: userInfo->usri2_full_name
|
userName = [NSString stringWithCharacters: userInfo->usri2_full_name
|
||||||
length: wcslen(userInfo->usri2_full_name)];
|
length: wcslen(userInfo->usri2_full_name)];
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue