From d2d44d3436e8f4c4696c8adec2c83f928d07c8fe Mon Sep 17 00:00:00 2001 From: Peter Kokot Date: Thu, 27 Sep 2018 01:05:53 +0200 Subject: [PATCH] Set SIZEOF_SIZE_T for windows platforms The size of `size_t` is 4 bytes on 32bit Windows platforms and 8 bytes on 64bit Windows platforms. This patch defines the SIZEOF_SIZE_T symbols for both instead of using only 4 for both. --- src/config.h.win32 | 1 + src/config.h.win64 | 1 + 2 files changed, 2 insertions(+) diff --git a/src/config.h.win32 b/src/config.h.win32 index f756d9a..1809734 100644 --- a/src/config.h.win32 +++ b/src/config.h.win32 @@ -11,6 +11,7 @@ #define SIZEOF_VOIDP 4 #define SIZEOF_FLOAT 4 #define SIZEOF_DOUBLE 8 +#define SIZEOF_SIZE_T 4 #define TOKEN_PASTE(x,y) x##y #ifndef NORETURN #if _MSC_VER > 1100 diff --git a/src/config.h.win64 b/src/config.h.win64 index 0ccc5f5..60e3edc 100644 --- a/src/config.h.win64 +++ b/src/config.h.win64 @@ -11,6 +11,7 @@ #define SIZEOF_VOIDP 8 #define SIZEOF_FLOAT 4 #define SIZEOF_DOUBLE 8 +#define SIZEOF_SIZE_T 8 #define TOKEN_PASTE(x,y) x##y #ifndef NORETURN #if _MSC_VER > 1100 -- 2.40.0