Differences From Artifact [a3e5369167]:
- File
src/OFDate.m
— part of check-in
[3c20dd5f95]
at
2018-05-26 14:46:35
on branch trunk
— Use trunc() instead of floor() in several places
floor() does not have the desired effect here when the number is
negative. (user: js, size: 15598) [annotate] [blame] [check-ins using]
To Artifact [c903c73512]:
- File src/OFDate.m — part of check-in [15a59cf9d5] at 2018-05-26 15:22:02 on branch trunk — Work around amiga-gcc not having trunc() (user: js, size: 15700) [annotate] [blame] [check-ins using]
︙ | ︙ | |||
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 |
︙ | ︙ |