Bug 14215 – invalid import in core.sys.linux.stdio

Status
RESOLVED
Resolution
FIXED
Severity
minor
Priority
P1
Component
druntime
Product
D
Version
D2
Platform
All
OS
Linux
Creation time
2015-02-23T07:42:00Z
Last change time
2015-04-29T17:44:46Z
Assigned to
nobody
Creator
ketmar

Comments

Comment #0 by ketmar — 2015-02-23T07:42:38Z
core.sys.linux.stdio imports `size_t` from `core.stdc.stddef`, but there is no `size_t` in that module. fix: diff --git a/src/core/sys/linux/stdio.d b/src/core/sys/linux/stdio.d index 13096f8..f598ace 100644 --- a/src/core/sys/linux/stdio.d +++ b/src/core/sys/linux/stdio.d @@ -11,7 +11,7 @@ public import core.sys.posix.stdio; import core.sys.posix.sys.types : ssize_t, off64_t = off_t; import core.sys.linux.config : __USE_FILE_OFFSET64; import core.stdc.stdio : FILE; -import core.stdc.stddef : wchar_t, size_t; +import core.stdc.stddef : wchar_t; extern(C) nothrow {
Comment #1 by dbugz — 2015-04-29T17:44:46Z
Commits pushed to master at https://github.com/D-Programming-Language/druntime https://github.com/D-Programming-Language/druntime/commit/68b9e9ce325d58812e73ca8f0cd268c05f651d2e Remove references to importing core.stdc.stddef for size_t or ptrdiff_t https://github.com/D-Programming-Language/druntime/commit/18d57ffe3eed8674ca2052656bb3f410084379f6 Merge pull request #1232 from joakim-noah/size_t Fix 14215 - Unnecessary imports of core.stdc.stddef for size_t and ptrdiff_t