Skip to content
This repository has been archived by the owner on Oct 12, 2022. It is now read-only.

Commit

Permalink
issue 14327: move call to init_msvc() into rt_init()
Browse files Browse the repository at this point in the history
  • Loading branch information
rainers committed Oct 18, 2015
1 parent 6ec905e commit 848c97c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/rt/dmain2.d
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,9 @@ extern (C) int rt_init()
rt_init. */
if (atomicOp!"+="(_initCount, 1) > 1) return 1;

version (CRuntime_Microsoft)
init_msvc();

_d_monitor_staticctor();
_d_critical_init();

Expand Down Expand Up @@ -325,8 +328,6 @@ extern (C) int _d_run_main(int argc, char **argv, MainFunc mainFunc)
}
version (CRuntime_Microsoft)
{
init_msvc();

// enable full precision for reals
version(Win64)
asm
Expand Down

0 comments on commit 848c97c

Please sign in to comment.