X-Git-Url: https://git.llucax.com/software/dgc/cdgc.git/blobdiff_plain/0c03b35e455d2c8bb2c50bb2cdaf3b1538431a0a..f79a30ddeee392a4f3d6aaf6ade2151a192097cc:/rt/gc/cdgc/iface.d diff --git a/rt/gc/cdgc/iface.d b/rt/gc/cdgc/iface.d index 703bbef..4a6cbec 100644 --- a/rt/gc/cdgc/iface.d +++ b/rt/gc/cdgc/iface.d @@ -28,7 +28,8 @@ module rt.gc.cdgc.iface; import rt.gc.cdgc.gc: GC, BlkInfo; import rt.gc.cdgc.stats: GCStats; -import libc = rt.gc.cdgc.libc; + +import cstdlib = tango.stdc.stdlib; version=GCCLASS; @@ -66,13 +67,13 @@ extern (C) void gc_init() version (GCCLASS) { ClassInfo ci = GC.classinfo; - void* p = libc.malloc(ci.init.length); + void* p = cstdlib.malloc(ci.init.length); (cast(byte*)p)[0 .. ci.init.length] = ci.init[]; _gc = cast(GC)p; } else { - _gc = cast(GC*) libc.calloc(1, GC.sizeof); + _gc = cast(GC*) cstdlib.calloc(1, GC.sizeof); } _gc.initialize(); version (DigitalMars) version(OSX) {