[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Lightning] [PATCH 3/3] Make sure "long" is 32-bit on MinGW
From: |
Paul Cercueil |
Subject: |
[Lightning] [PATCH 3/3] Make sure "long" is 32-bit on MinGW |
Date: |
Wed, 25 Sep 2019 00:55:10 +0200 |
Just like on Visual Studio, the "long" type is always 32-bits on MinGW,
independently of the register length of the CPU in use.
Signed-off-by: Paul Cercueil <address@hidden>
---
include/lightning.h.in | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/include/lightning.h.in b/include/lightning.h.in
index 5cae8d6..3109694 100644
--- a/include/lightning.h.in
+++ b/include/lightning.h.in
@@ -100,7 +100,7 @@ typedef signed short jit_int16_t;
typedef unsigned short jit_uint16_t;
typedef signed int jit_int32_t;
typedef unsigned int jit_uint32_t;
-#if __WORDSIZE == 32
+#if __WORDSIZE == 32 || (_WIN32 && !__CYGWIN__)
typedef signed long long jit_int64_t;
typedef unsigned long long jit_uint64_t;
typedef jit_int32_t jit_word_t;
--
2.23.0