From: Peter Kokot Date: Wed, 26 Sep 2018 23:05:53 +0000 (+0200) Subject: Set SIZEOF_SIZE_T for windows platforms X-Git-Tag: v6.9.1~18^2~46 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d2d44d3436e8f4c4696c8adec2c83f928d07c8fe;p=onig 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. --- 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