Skip to content

Commit 3c9dd44

Browse files
Marcel Steinbeckdnadlinger
authored andcommitted
D: Replace deprecated imports (package std.c). Fixes swig#1593
1 parent 305a824 commit 3c9dd44

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Lib/d/wrapperloader.swg

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,10 @@ private {
4040
} else {
4141
version(D_Version2) {
4242
static import std.conv;
43+
} else {
44+
static import std.c.string;
4345
}
4446
static import std.string;
45-
static import std.c.string;
4647
}
4748

4849
version(D_Version2) {
@@ -112,7 +113,7 @@ private {
112113
version(Tango) {
113114
import tango.sys.Common;
114115
} else version(linux) {
115-
import std.c.linux.linux;
116+
import core.sys.posix.dlfcn;
116117
} else {
117118
extern(C) {
118119
const RTLD_NOW = 2;

0 commit comments

Comments
 (0)