ObjFW  Check-in [138410a925]

Overview
Comment:Work around amiga-gcc missing strto(u)ll
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: 138410a9253dcee0128083b957f1c7f6ff18bf81db66c02ad2d73a1bf3cfeae5
User & Date: js on 2020-08-13 19:49:10
Other Links: manifest | tags
Context
2020-08-13
20:58
Add src/runtime/Info.plist to {clean,ignore}-glob check-in: 67b8b22764 user: js tags: trunk
19:49
Work around amiga-gcc missing strto(u)ll check-in: 138410a925 user: js tags: trunk
19:43
Set errno to 0 before calling strto* check-in: 04bb18457a user: js tags: trunk
Changes

Modified src/OFString.m from [3a36a1ae89] to [3885de5d40].

71
72
73
74
75
76
77



78
79
80
81
82
83
84
#ifdef __MINGW32__
# define strtod __strtod
#endif

#ifdef OF_AMIGAOS_M68K
/* libnix has strtod, but not strtof */
# define strtof strtod



#endif

static struct {
	Class isa;
} placeholder;

#if defined(HAVE_STRTOF_L) || defined(HAVE_STRTOD_L)







>
>
>







71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
#ifdef __MINGW32__
# define strtod __strtod
#endif

#ifdef OF_AMIGAOS_M68K
/* libnix has strtod, but not strtof */
# define strtof strtod
/* libnix has strtoimax/strtoumax, but not strtoll/strtoull */
# define strtoll strtoimax
# define strtoull strtoumax
#endif

static struct {
	Class isa;
} placeholder;

#if defined(HAVE_STRTOF_L) || defined(HAVE_STRTOD_L)