From e67495e141a3e01f0ae5e4ff05f402b5c824ecb4 Mon Sep 17 00:00:00 2001 From: Andrew Kaster Date: Wed, 28 May 2025 23:51:27 -0600 Subject: [PATCH] LibCrypto: Forward declare tommath types properly on Windows --- Libraries/LibCrypto/BigInt/TommathForward.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Libraries/LibCrypto/BigInt/TommathForward.h b/Libraries/LibCrypto/BigInt/TommathForward.h index e8f6fdfbcf8..33def098d32 100644 --- a/Libraries/LibCrypto/BigInt/TommathForward.h +++ b/Libraries/LibCrypto/BigInt/TommathForward.h @@ -6,8 +6,15 @@ #pragma once +#include +#include + extern "C" { +#if defined(AK_OS_WINDOWS) +typedef uint32_t mp_digit; +#else typedef uint64_t mp_digit; +#endif typedef int mp_sign; // This is a workaround for the fact that Tommath doesn't have a proper