mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-10 09:32:06 +00:00
Added wrapper [#CLICKHOUSE-2].
This commit is contained in:
parent
2695407a44
commit
4331b52a15
@ -6,6 +6,7 @@ endif ()
|
||||
add_subdirectory (libcommon)
|
||||
add_subdirectory (libpocoext)
|
||||
add_subdirectory (libdaemon)
|
||||
add_subdirectory (libmemcpy)
|
||||
|
||||
if (USE_MYSQL)
|
||||
add_subdirectory (libmysqlxx)
|
||||
|
1
libs/libmemcpy/CMakeLists.txt
Normal file
1
libs/libmemcpy/CMakeLists.txt
Normal file
@ -0,0 +1 @@
|
||||
add_library (memcpy memcpy.c)
|
3
libs/libmemcpy/memcpy.c
Normal file
3
libs/libmemcpy/memcpy.c
Normal 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
17
libs/libmemcpy/memcpy.h
Normal 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
|
Loading…
Reference in New Issue
Block a user