Added wrapper [#CLICKHOUSE-2].

This commit is contained in:
Alexey Milovidov 2017-09-15 06:27:37 +03:00
parent 2695407a44
commit 4331b52a15
4 changed files with 22 additions and 0 deletions

View File

@ -6,6 +6,7 @@ endif ()
add_subdirectory (libcommon)
add_subdirectory (libpocoext)
add_subdirectory (libdaemon)
add_subdirectory (libmemcpy)
if (USE_MYSQL)
add_subdirectory (libmysqlxx)

View File

@ -0,0 +1 @@
add_library (memcpy memcpy.c)

3
libs/libmemcpy/memcpy.c Normal file
View File

@ -0,0 +1,3 @@
#include "memcpy.h"
/// This is needed to generate an object file for linking.

17
libs/libmemcpy/memcpy.h Normal file
View File

@ -0,0 +1,17 @@
#pragma once
#ifdef __cplusplus
extern "C"
{
#endif
#include "FastMemcpy.h"
void * __attribute__((__weak__)) memcpy(void * __restrict destination, const void * __restrict source, size_t size)
{
return memcpy_fast(destination, source, size);
}
#ifdef __cplusplus
}
#endif