lightning
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Lightning] [PATCH] Fix 9 tests on Windows x64, due to size of long


From: Paul Cercueil
Subject: Re: [Lightning] [PATCH] Fix 9 tests on Windows x64, due to size of long
Date: Thu, 03 Oct 2019 21:59:24 +0200

Hi Zachary,


Le jeu., oct. 3, 2019 at 15:31, Zachary Cook <address@hidden> a écrit :
---
 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

Ouch... Please don't do that...


+#endif
+
 /*
  * Types
  */
--
2.23.0


_______________________________________________
Lightning mailing list
address@hidden
https://lists.gnu.org/mailman/listinfo/lightning





reply via email to

[Prev in Thread] Current Thread [Next in Thread]