Skip to content

Commit

Permalink
trying tomsething
Browse files Browse the repository at this point in the history
  • Loading branch information
adamdruppe committed Sep 22, 2024
1 parent 323b0c6 commit 9b1d01d
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions druntime/src/rt/msvc.d
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@
*/
module rt.msvc;

version=UseLdcImpl;

version (CRuntime_Microsoft):

import core.stdc.stdarg : va_list;
Expand All @@ -21,7 +23,7 @@ extern(C):
nothrow:
@nogc:

version (LDC)
version (UseLdcImpl)
{
// LDC doesn't support MSVC versions before VS2015
FILE* __acrt_iob_func(int hnd);
Expand Down Expand Up @@ -63,7 +65,7 @@ mixin template declareAlternateName(string name, string alternateName)
mixin(`pragma(linkerDirective, "/alternatename:` ~ cPrefix~name ~ `=` ~ cPrefix~alternateName ~ `");`);
}

version (LDC)
version (UseLdcImpl)
{
// dummy, used to link in this object file
void init_msvc() {}
Expand Down

0 comments on commit 9b1d01d

Please sign in to comment.