mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-06-08 05:27:14 +09:00
LibCrypto: Forward declare tommath types properly on Windows
This commit is contained in:
parent
f669af3a5c
commit
e67495e141
Notes:
github-actions[bot]
2025-05-29 09:27:51 +00:00
Author: https://github.com/R-Goc
Commit: e67495e141
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/4774
Reviewed-by: https://github.com/ADKaster ✅
Reviewed-by: https://github.com/trflynn89
1 changed files with 7 additions and 0 deletions
|
@ -6,8 +6,15 @@
|
||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
|
#include <AK/Platform.h>
|
||||||
|
#include <stdint.h>
|
||||||
|
|
||||||
extern "C" {
|
extern "C" {
|
||||||
|
#if defined(AK_OS_WINDOWS)
|
||||||
|
typedef uint32_t mp_digit;
|
||||||
|
#else
|
||||||
typedef uint64_t mp_digit;
|
typedef uint64_t mp_digit;
|
||||||
|
#endif
|
||||||
typedef int mp_sign;
|
typedef int mp_sign;
|
||||||
|
|
||||||
// This is a workaround for the fact that Tommath doesn't have a proper
|
// This is a workaround for the fact that Tommath doesn't have a proper
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue