[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Lightning] [PATCH] Fix Windows x64
From: |
Zachary Cook |
Subject: |
[Lightning] [PATCH] Fix Windows x64 |
Date: |
Sun, 29 Sep 2019 20:01:22 -0400 |
Need long long to get 64 bits on Windows x64, but also need 64 bit word
Signed-off-by: Zachary Cook <address@hidden>
---
include/lightning.h.in | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/include/lightning.h.in b/include/lightning.h.in
index 06944ee..70560c9 100644
--- a/include/lightning.h.in
+++ b/include/lightning.h.in
@@ -100,11 +100,16 @@ 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 || (_WIN32 && !__CYGWIN__)
+#if __WORDSIZE == 32
typedef signed long long jit_int64_t;
typedef unsigned long long jit_uint64_t;
typedef jit_int32_t jit_word_t;
typedef jit_uint32_t jit_uword_t;
+#elif (_WIN32 && !__CYGWIN__)
+typedef signed long long jit_int64_t;
+typedef unsigned long long jit_uint64_t;
+typedef jit_int64_t jit_word_t;
+typedef jit_uint64_t jit_uword_t;
#else
typedef signed long jit_int64_t;
typedef unsigned long jit_uint64_t;
--
2.23.0
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Lightning] [PATCH] Fix Windows x64,
Zachary Cook <=