Split clang header
This commit is contained in:
parent
1d420b6034
commit
0b9cfa556e
@ -1,15 +1,4 @@
|
||||
#pragma once
|
||||
|
||||
#include "ClangBsearch.hpp"
|
||||
|
||||
static int memcpy_s(void * dest, size_t destsz,
|
||||
const void * src, size_t count)
|
||||
{
|
||||
size_t minVal = std::min(destsz, count);
|
||||
if (count > destsz)
|
||||
{
|
||||
return 1;
|
||||
}
|
||||
std::memcpy(dest, src, minVal);
|
||||
return 0;
|
||||
}
|
||||
#include "ClangMemCpy_s.hpp"
|
13
PlatformSupport/ClangMemCpy_s.hpp
Normal file
13
PlatformSupport/ClangMemCpy_s.hpp
Normal file
@ -0,0 +1,13 @@
|
||||
#pragma once
|
||||
|
||||
static int memcpy_s(void * dest, size_t destsz,
|
||||
const void * src, size_t count)
|
||||
{
|
||||
size_t minVal = std::min(destsz, count);
|
||||
if (count > destsz)
|
||||
{
|
||||
return 1;
|
||||
}
|
||||
std::memcpy(dest, src, minVal);
|
||||
return 0;
|
||||
}
|
Loading…
Reference in New Issue
Block a user