This repository was archived by the owner on Oct 12, 2022. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +4
-11
lines changed Expand file tree Collapse file tree 1 file changed +4
-11
lines changed Original file line number Diff line number Diff line change 4
4
* Copyright: Copyright Sean Kelly 2005 - 2009.
5
5
* License: $(LINK2 http://www.boost.org/LICENSE_1_0.txt, Boost License 1.0)
6
6
* Authors: Sean Kelly
7
- * Source: $(DRUNTIMESRC core/_runtime.d)
7
+ * Source: $(LINK2 https://github.com/dlang/druntime/blob/master/src/core/runtime.d, _runtime.d)
8
+ * Documentation: https://dlang.org/phobos/core_runtime.html
8
9
*/
9
10
10
- /* Copyright Sean Kelly 2005 - 2009.
11
- * Distributed under the Boost Software License, Version 1.0.
12
- * (See accompanying file LICENSE or copy at
13
- * http://www.boost.org/LICENSE_1_0.txt)
14
- */
15
11
module core.runtime ;
16
12
17
- version (Windows ) import core.stdc.wchar_ : wchar_t;
18
-
19
13
version (OSX )
20
14
version = Darwin;
21
15
else version (iOS)
@@ -27,8 +21,7 @@ else version (WatchOS)
27
21
28
22
// / C interface for Runtime.loadLibrary
29
23
extern (C ) void * rt_loadLibrary(const char * name);
30
- // / ditto
31
- version (Windows ) extern (C ) void * rt_loadLibraryW(const wchar_t* name);
24
+
32
25
// / C interface for Runtime.unloadLibrary, returns 1/0 instead of bool
33
26
extern (C ) int rt_unloadLibrary(void * ptr);
34
27
@@ -243,7 +236,7 @@ struct Runtime
243
236
if (len == 0 )
244
237
return null ;
245
238
246
- auto buf = cast (wchar_t * )malloc((len+ 1 ) * wchar_t .sizeof);
239
+ auto buf = cast (WCHAR * )malloc((len+ 1 ) * WCHAR .sizeof);
247
240
if (buf is null ) return null ;
248
241
scope (exit) free(buf);
249
242
You can’t perform that action at this time.
0 commit comments