[clang] Avoid linking libdl unless needed
[llvm-project.git] / libc / src / string / memcpy.h
blob39ca4a46f7f356d07fb4f4c62152451862971387
1 //===-- Implementation header for memcpy ------------------------*- C++ -*-===//
2 //
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4 // See https://llvm.org/LICENSE.txt for license information.
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6 //
7 //===----------------------------------------------------------------------===//
9 #ifndef LLVM_LIBC_SRC_STRING_MEMCPY_H
10 #define LLVM_LIBC_SRC_STRING_MEMCPY_H
12 #include "include/string.h"
13 #include <stddef.h> // size_t
15 namespace __llvm_libc {
17 void *memcpy(void *__restrict, const void *__restrict, size_t);
19 } // namespace __llvm_libc
21 #endif // LLVM_LIBC_SRC_STRING_MEMCPY_H