From a77a24c8b6aa6bdd6bd929b5e6e8addd3c989f1b Mon Sep 17 00:00:00 2001 From: heck Date: Thu, 22 Jul 2021 13:31:57 +0200 Subject: [PATCH] use pEp/platform.h for windows compat --- src/message_cache.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/message_cache.cc b/src/message_cache.cc index 27fc35a..6332925 100644 --- a/src/message_cache.cc +++ b/src/message_cache.cc @@ -2,6 +2,7 @@ // see LICENSE.txt #include "message_cache.hh" +#include #include #include #include @@ -96,7 +97,7 @@ namespace pEp { if (!src) return nullptr; - char *dst = ::_strdup(src); + char *dst = ::strdup(src); assert(dst); if (!dst) throw std::bad_alloc();