[Issue 5616] New: std.datetime: not cross-platform
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sat Feb 19 15:50:52 PST 2011
http://d.puremagic.com/issues/show_bug.cgi?id=5616
Summary: std.datetime: not cross-platform
Product: D
Version: D2
Platform: Other
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P2
Component: Phobos
AssignedTo: nobody at puremagic.com
ReportedBy: ibuclaw at ubuntu.com
--- Comment #0 from Iain Buclaw <ibuclaw at ubuntu.com> 2011-02-19 15:48:13 PST ---
This is how not to write platform independent code:
version(Posix)
{
//This should be in core.stdc.time, but it isn't, so
//we're declaring it here.
extern(C)
{
extern __gshared char* tzname[2];
extern __gshared int daylight;
}
}
Breaks on FreeBSD because 'daylight' isn't defined in the standard C library.
Regards.
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
More information about the Digitalmars-d-bugs
mailing list