ObjFW  Check-in [15a59cf9d5]

Overview
Comment:Work around amiga-gcc not having trunc()
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: 15a59cf9d5bae7e57bbc8c3dbdbdc9cea1522683ab750c9003d35453346b8bef
User & Date: js on 2018-05-26 15:22:02
Other Links: manifest | tags
Context
2018-05-26
23:04
Add OFLHAArchive check-in: 790b5344d6 user: js tags: trunk
15:22
Work around amiga-gcc not having trunc() check-in: 15a59cf9d5 user: js tags: trunk
15:18
runtime/linklib: Use init/exit list on amiga-gcc check-in: 57f0d10b19 user: js tags: trunk
Changes

Modified src/OFDate.m from [a3e5369167] to [c903c73512].

36
37
38
39
40
41
42





43
44
45
46
47
48
49

#import "OFInitializationFailedException.h"
#import "OFInvalidArgumentException.h"
#import "OFInvalidFormatException.h"
#import "OFOutOfRangeException.h"

#import "of_strptime.h"






#if (!defined(HAVE_GMTIME_R) || !defined(HAVE_LOCALTIME_R)) && \
    defined(OF_HAVE_THREADS)
static OFMutex *mutex;
#endif

#ifdef HAVE_GMTIME_R







>
>
>
>
>







36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54

#import "OFInitializationFailedException.h"
#import "OFInvalidArgumentException.h"
#import "OFInvalidFormatException.h"
#import "OFOutOfRangeException.h"

#import "of_strptime.h"

#ifdef OF_AMIGAOS_M68K
/* amiga-gcc does not have trunc() */
# define trunc(x) ((int64_t)(x))
#endif

#if (!defined(HAVE_GMTIME_R) || !defined(HAVE_LOCALTIME_R)) && \
    defined(OF_HAVE_THREADS)
static OFMutex *mutex;
#endif

#ifdef HAVE_GMTIME_R