Differences From Artifact [5fdc37c7e4]:
- File src/OFOnce.m — part of check-in [8939cbdb52] at 2023-01-06 09:04:02 on branch trunk — Update copyright (user: js size: 1635)
To Artifact [a97e7312a6]:
- File src/OFOnce.m — part of check-in [abbed5c008] at 2023-04-10 15:08:39 on branch trunk — Work around newer amiga-gcc defining Class (user: js size: 1679) [more...]
| ︙ | |||
20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 | 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 | + + |
#import "OFOnce.h"
#if defined(OF_HAVE_THREADS) && defined(OF_HAVE_ATOMIC_OPS)
# import "OFAtomic.h"
# import "OFPlainMutex.h"
#endif
#ifdef OF_AMIGAOS
# define Class IntuitionClass
# include <proto/exec.h>
# undef Class
#endif
void
OFOnce(OFOnceControl *control, void (*function)(void))
{
#if !defined(OF_HAVE_THREADS)
if (*control == 0) {
|
| ︙ |