---
check/ccall.c | 4 ++++
check/lightning.c | 4 ++++
2 files changed, 8 insertions(+)
diff --git a/check/ccall.c b/check/ccall.c
index e454a32..1b71df9 100644
--- a/check/ccall.c
+++ b/check/ccall.c
@@ -142,8 +142,12 @@ typedef unsigned short _us;
typedef signed int _i;
#if __WORDSIZE == 64
typedef unsigned int _ui;
+#ifdef __WIN32
+typedef signed long long _l;
+#else
typedef signed long _l;
#endif
+#endif
typedef float _f;
typedef double _d;
diff --git a/check/lightning.c b/check/lightning.c
index 8df033a..d6e2d0e 100644
--- a/check/lightning.c
+++ b/check/lightning.c
@@ -74,6 +74,10 @@ static void *DL_HANDLE;
#define PARSING_CODE 2
#define MAX_IDENTIFIER 256
+#if __WORDSIZE == 64 && defined(__WIN32)
+#define long long long