Overview
| Comment: | OFEmbeddedIRIHandler: Add missing #ifdef |
|---|---|
| Downloads: | Tarball | ZIP archive | SQL archive |
| Timelines: | family | ancestors | descendants | both | trunk |
| Files: | files | file ages | folders |
| SHA3-256: |
ad934765cf9bc23dced341665871fd06 |
| User & Date: | js on 2023-03-26 13:26:31 |
| Other Links: | manifest | tags |
Context
|
2023-03-26
| ||
| 13:31 | tests: Fix embedded files not being loaded on iOS (check-in: 682547afc9 user: js tags: trunk) | |
| 13:26 | OFEmbeddedIRIHandler: Add missing #ifdef (check-in: ad934765cf user: js tags: trunk) | |
| 13:25 | tests/ImportTest:.m: Test @import instead (check-in: f439c0437e user: js tags: trunk) | |
Changes
Modified src/OFEmbeddedIRIHandler.m from [5dec058e36] to [3c1f214812].
| ︙ | ︙ | |||
68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 |
#ifdef OF_HAVE_THREADS
OFEnsure(OFPlainMutexUnlock(&mutex) == 0);
#endif
}
@implementation OFEmbeddedIRIHandler
+ (void)initialize
{
if (self == [OFEmbeddedIRIHandler class])
OFOnce(&mutexOnceControl, initMutex);
}
- (OFStream *)openItemAtIRI: (OFIRI *)IRI mode: (OFString *)mode
{
OFString *path;
if (![IRI.scheme isEqual: @"embedded"] || IRI.host.length > 0 ||
IRI.port != nil || IRI.user != nil || IRI.password != nil ||
| > > | 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 |
#ifdef OF_HAVE_THREADS
OFEnsure(OFPlainMutexUnlock(&mutex) == 0);
#endif
}
@implementation OFEmbeddedIRIHandler
#ifdef OF_HAVE_THREADS
+ (void)initialize
{
if (self == [OFEmbeddedIRIHandler class])
OFOnce(&mutexOnceControl, initMutex);
}
#endif
- (OFStream *)openItemAtIRI: (OFIRI *)IRI mode: (OFString *)mode
{
OFString *path;
if (![IRI.scheme isEqual: @"embedded"] || IRI.host.length > 0 ||
IRI.port != nil || IRI.user != nil || IRI.password != nil ||
|
| ︙ | ︙ |