mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-30 08:21:25 +00:00
improve build on windows
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@37483 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
1aeea18a33
commit
263e81a85c
3 changed files with 20 additions and 11 deletions
|
@ -53,7 +53,7 @@ static const int kUUIDByteCount = 16;
|
|||
|
||||
- (id) init
|
||||
{
|
||||
uint8_t localUUID[16];
|
||||
gsuuid_t localUUID;
|
||||
int result;
|
||||
|
||||
result = random_uuid(localUUID);
|
||||
|
@ -67,7 +67,7 @@ static const int kUUIDByteCount = 16;
|
|||
|
||||
- (id) initWithUUIDString: (NSString *)string
|
||||
{
|
||||
uint8_t localUUID[16];
|
||||
gsuuid_t localUUID;
|
||||
const char *cString;
|
||||
int parseResult;
|
||||
|
||||
|
@ -81,7 +81,7 @@ static const int kUUIDByteCount = 16;
|
|||
return [self initWithUUIDBytes: localUUID];
|
||||
}
|
||||
|
||||
- (id) initWithUUIDBytes: (uint8_t*)bytes
|
||||
- (id) initWithUUIDBytes: (gsuuid_t)bytes
|
||||
{
|
||||
if (nil != (self = [super init]))
|
||||
{
|
||||
|
@ -101,7 +101,7 @@ static const int kUUIDByteCount = 16;
|
|||
return AUTORELEASE(string);
|
||||
}
|
||||
|
||||
- (void) getUUIDBytes: (uint8_t*)bytes
|
||||
- (void) getUUIDBytes: (gsuuid_t)bytes
|
||||
{
|
||||
memcpy(bytes, uuid, kUUIDByteCount);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue