Skip to content

Instantly share code, notes, and snippets.

@redstar
Created June 28, 2014 17:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save redstar/5800e9dc85a1d5626e7e to your computer and use it in GitHub Desktop.
Save redstar/5800e9dc85a1d5626e7e to your computer and use it in GitHub Desktop.
Fix std.math for win64
diff --git a/src/core/stdc/math.d b/src/core/stdc/math.d
index 78d6894..85d6287 100644
--- a/src/core/stdc/math.d
+++ b/src/core/stdc/math.d
@@ -105,12 +105,19 @@ version( none )
version( DigitalMars )
{
version( Win32 )
- version = DigitalMarsWin32;
+ version = DMC_RUNTIME;
version( Win64 )
- version = DigitalMarsWin64; // just to get it to compile for the moment - fix later
+ version = MSVC_RUNTIME;
}
-version( DigitalMarsWin32 )
+version( LDC )
+{
+ version( Win64 )
+ version = MSVC_RUNTIME;
+
+}
+
+version( DMC_RUNTIME )
{
enum
{
@@ -179,7 +186,7 @@ version( DigitalMarsWin32 )
}
}
}
-else version( DigitalMarsWin64 )
+else version( MSVC_RUNTIME )
{
enum
{
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment