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

Commit

Permalink
Merge pull request #3733 from WalterBright/fix22553
Browse files Browse the repository at this point in the history
fix Issue 22553 - ImportC: undefined identifier __uint128_t
  • Loading branch information
RazvanN7 committed Feb 8, 2022
2 parents 3fc84a7 + 37e05ad commit 3dcf1a7
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/__builtins.di
Original file line number Diff line number Diff line change
Expand Up @@ -91,4 +91,12 @@ version (DigitalMars)
int __builtin_constant_p(T)(T exp) { return 0; } // should be something like __traits(compiles, enum X = expr)
long __builtin_expect()(long exp, long c) { return exp; }
void* __builtin_assume()(const void* p, size_t align_, ...) { return cast(void*)p; }

/* Header on macOS for arm64 references this.
* Don't need to implement it, it just needs to compile
*/
align (16) struct __uint128_t
{
ulong a, b;
}
}

0 comments on commit 3dcf1a7

Please sign in to comment.