Browse Source

use pEp/platform.h for windows compat

LIB-18
heck 4 years ago
parent
commit
a77a24c8b6
  1. 3
      src/message_cache.cc

3
src/message_cache.cc

@ -2,6 +2,7 @@
// see LICENSE.txt // see LICENSE.txt
#include "message_cache.hh" #include "message_cache.hh"
#include <pEp/platform.h>
#include <cassert> #include <cassert>
#include <cstring> #include <cstring>
#include <climits> #include <climits>
@ -96,7 +97,7 @@ namespace pEp {
if (!src) if (!src)
return nullptr; return nullptr;
char *dst = ::_strdup(src); char *dst = ::strdup(src);
assert(dst); assert(dst);
if (!dst) if (!dst)
throw std::bad_alloc(); throw std::bad_alloc();

Loading…
Cancel
Save