Skip to content

Commit e67495e

Browse files
committed
LibCrypto: Forward declare tommath types properly on Windows
1 parent f669af3 commit e67495e

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

Libraries/LibCrypto/BigInt/TommathForward.h

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,15 @@
66

77
#pragma once
88

9+
#include <AK/Platform.h>
10+
#include <stdint.h>
11+
912
extern "C" {
13+
#if defined(AK_OS_WINDOWS)
14+
typedef uint32_t mp_digit;
15+
#else
1016
typedef uint64_t mp_digit;
17+
#endif
1118
typedef int mp_sign;
1219

1320
// This is a workaround for the fact that Tommath doesn't have a proper

0 commit comments

Comments
 (0)