Skip to content

Commit

Permalink
abort now is extern(C)
Browse files Browse the repository at this point in the history
  • Loading branch information
denizzzka committed Nov 10, 2023
1 parent 80c7517 commit a0950dd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion runtime/druntime/src/core/internal/abort.d
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ module core.internal.abort;
*/
version (FreeStanding)
{
extern(D) void abort(scope string msg, scope string filename = __FILE__, size_t line = __LINE__) @nogc nothrow @safe;
extern(C) void abort(scope string msg, scope string filename = __FILE__, size_t line = __LINE__) @nogc nothrow @safe;
}
else
void abort(scope string msg, scope string filename = __FILE__, size_t line = __LINE__) @nogc nothrow @safe
Expand Down
2 changes: 2 additions & 0 deletions runtime/druntime/src/core/thread/osthread.d
Original file line number Diff line number Diff line change
Expand Up @@ -2874,8 +2874,10 @@ private
* is returned.
*/
version (FreeStanding)
{
extern(D) ThreadID createLowLevelThread(void delegate() nothrow dg, uint stacksize = 0,
void delegate() nothrow cbDllUnload = null) nothrow @nogc;
}
else
ThreadID createLowLevelThread(void delegate() nothrow dg, uint stacksize = 0,
void delegate() nothrow cbDllUnload = null) nothrow @nogc
Expand Down

0 comments on commit a0950dd

Please sign in to comment.