mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-31 00:30:53 +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
|
@ -25,25 +25,34 @@
|
|||
#ifndef __NSUUID_h_GNUSTEP_BASE_INCLUDE
|
||||
#define __NSUUID_h_GNUSTEP_BASE_INCLUDE
|
||||
|
||||
|
||||
#import <Foundation/NSObject.h>
|
||||
|
||||
#if defined(__cplusplus)
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
typedef uint8_t gsuuid_t[16];
|
||||
|
||||
#if defined(uuid_t)
|
||||
#undef uuid_t
|
||||
#endif
|
||||
#define uuid_t gsuuid_t
|
||||
|
||||
|
||||
@class NSString;
|
||||
|
||||
@interface NSUUID : NSObject <NSCopying, NSCoding>
|
||||
{
|
||||
@private
|
||||
uint8_t uuid[16];
|
||||
gsuuid_t uuid;
|
||||
}
|
||||
|
||||
+ (id) UUID;
|
||||
- (id) initWithUUIDString: (NSString *)string;
|
||||
- (id) initWithUUIDBytes: (uint8_t*)bytes;
|
||||
- (NSString *) UUIDString;
|
||||
- (void) getUUIDBytes: (uint8_t*)bytes;
|
||||
+ (id)UUID;
|
||||
- (id)initWithUUIDString:(NSString *)string;
|
||||
- (id)initWithUUIDBytes:(gsuuid_t)bytes;
|
||||
- (NSString *)UUIDString;
|
||||
- (void)getUUIDBytes:(gsuuid_t)bytes;
|
||||
|
||||
@end
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue