Fix for bug #399

This commit is contained in:
rfm 2024-04-29 13:11:35 +01:00
parent 53b02bab91
commit a5beb6ab31
4 changed files with 55 additions and 16 deletions

View file

@ -33,6 +33,7 @@
@class _GSMutableInsensitiveDictionary;
@class NSNotification;
@class NSRecursiveLock;
#if ( (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 3) ) && HAVE_VISIBILITY_ATTRIBUTE )
#define GS_ATTRIB_PRIVATE __attribute__ ((visibility("internal")))
@ -422,6 +423,13 @@ GSPrivateLoadModule(NSString *filename, FILE *errorStream,
void (*loadCallback)(Class, struct objc_category *),
void **header, NSString *debugFilename) GS_ATTRIB_PRIVATE;
/* Return a private global recursive lock for protecting internal
* data structures before aother locks have been initialised.
* Implemented in NSLock.m
*/
NSRecursiveLock *
GSPrivateGlobalLock() GS_ATTRIB_PRIVATE;
/* Get the native C-string encoding as used by locale specific code in the
* operating system. This may differ from the default C-string encoding
* if the latter has been set via an environment variable.