Browse Source

use pEp/platform.h for windows compat

LIB-18
heck 3 months ago
parent
commit
a77a24c8b6
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      src/message_cache.cc

+ 2
- 1
src/message_cache.cc View File

@ -2,6 +2,7 @@
// see LICENSE.txt
#include "message_cache.hh"
#include <pEp/platform.h>
#include <cassert>
#include <cstring>
#include <climits>
@ -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();


Loading…
Cancel
Save