September 02, 2007 [Issue 1469] New: "alias int fpos_t" in std.c.stdio is wrong on Darwin | ||||
---|---|---|---|---|
| ||||
http://d.puremagic.com/issues/show_bug.cgi?id=1469 Summary: "alias int fpos_t" in std.c.stdio is wrong on Darwin Product: D Version: 2.004 Platform: Macintosh OS/Version: Mac OS X Status: NEW Severity: blocker Priority: P2 Component: Phobos AssignedTo: bugzilla@digitalmars.com ReportedBy: u.singer@gmx.net Hi, I am using the D compiler on Mac OS X 10.4 ("gdc-0.24-mac-10.4.dmg" from sourceforge.net). In /usr/include/d/4.0.1/std/c/stdio.d, I found: alias int fpos_t; , which is wrong for Darwin. See/usr/include/stdio.h & /usr/include/sys/_types.h on that platform. A better coding would presumably be: version (darwin) alias long fpos_t; // Darwin wants 64 bits. else alias int fpos_t; Thanks! -- |
Copyright © 1999-2021 by the D Language Foundation