[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Lightning] [PATCH] Fix 9 tests on Windows x64, due to size of long
From: |
Zachary Cook |
Subject: |
[Lightning] [PATCH] Fix 9 tests on Windows x64, due to size of long |
Date: |
Thu, 3 Oct 2019 15:31:38 -0400 |
---
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
+#endif
+
/*
* Types
*/
--
2.23.0
- [Lightning] [PATCH] Fix 9 tests on Windows x64, due to size of long,
Zachary Cook <=
- Re: [Lightning] [PATCH] Fix 9 tests on Windows x64, due to size of long, Zachary Cook, 2019/10/03
- [Lightning] [PATCH v2] Fix 9 tests on Windows x64, due to size of long, Zachary Cook, 2019/10/03
- Re: [Lightning] [PATCH v2] Fix 9 tests on Windows x64, due to size of long, Zachary Cook, 2019/10/03
- Re: [Lightning] [PATCH v2] Fix 9 tests on Windows x64, due to size of long, Paulo César Pereira de Andrade, 2019/10/03
- Re: [Lightning] [PATCH v2] Fix 9 tests on Windows x64, due to size of long, Zachary Cook, 2019/10/03
- Re: [Lightning] [PATCH v2] Fix 9 tests on Windows x64, due to size of long, Paulo César Pereira de Andrade, 2019/10/04
- Re: [Lightning] [PATCH v2] Fix 9 tests on Windows x64, due to size of long, Zachary Cook, 2019/10/04
- Re: [Lightning] [PATCH v2] Fix 9 tests on Windows x64, due to size of long, Paul Cercueil, 2019/10/04