From 1e1ac454b75c62074e1ee142d1bf21c3e1955fba Mon Sep 17 00:00:00 2001 From: Naden Date: Sun, 30 Apr 2023 18:15:40 +1000 Subject: [PATCH] Only use strings.h when not targeting Win32 --- include/jemalloc/internal/jemalloc_internal_decls.h | 2 +- include/jemalloc/jemalloc_macros.h.in | 6 +++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/include/jemalloc/internal/jemalloc_internal_decls.h b/include/jemalloc/internal/jemalloc_internal_decls.h index 77ba1c9a..5ee6cf05 100644 --- a/include/jemalloc/internal/jemalloc_internal_decls.h +++ b/include/jemalloc/internal/jemalloc_internal_decls.h @@ -17,6 +17,7 @@ # endif # endif #else +# include # include # include # if !defined(__pnacl__) && !defined(__native_client__) @@ -72,7 +73,6 @@ # define offsetof(type, member) ((size_t)&(((type *)NULL)->member)) #endif #include -#include #include #ifdef _MSC_VER # include diff --git a/include/jemalloc/jemalloc_macros.h.in b/include/jemalloc/jemalloc_macros.h.in index 05d996be..ce32ccad 100644 --- a/include/jemalloc/jemalloc_macros.h.in +++ b/include/jemalloc/jemalloc_macros.h.in @@ -2,7 +2,11 @@ #include #include #include -#include +#ifdef _WIN32 +# include "msvc_compat/strings.h" +#else +# include +#endif #define JEMALLOC_VERSION "@jemalloc_version@" #define JEMALLOC_VERSION_MAJOR @jemalloc_version_major@