mirror of https://github.com/libsdl-org/SDL.git
memset and memcpy are not intrinsic functions in new LLVM-based Intel compiler
This commit is contained in:
parent
4be82202de
commit
a06046c55c
|
|
@ -38,7 +38,9 @@ __declspec(selectany) int _fltused = 1;
|
||||||
#if (_MSC_VER >= 1400) && (!defined(_MT) || defined(DLL_EXPORT))
|
#if (_MSC_VER >= 1400) && (!defined(_MT) || defined(DLL_EXPORT))
|
||||||
/* NOLINTNEXTLINE(readability-redundant-declaration) */
|
/* NOLINTNEXTLINE(readability-redundant-declaration) */
|
||||||
extern void *memcpy(void *dst, const void *src, size_t len);
|
extern void *memcpy(void *dst, const void *src, size_t len);
|
||||||
|
#ifndef __INTEL_LLVM_COMPILER
|
||||||
#pragma intrinsic(memcpy)
|
#pragma intrinsic(memcpy)
|
||||||
|
#endif
|
||||||
|
|
||||||
#if !defined(__clang__)
|
#if !defined(__clang__)
|
||||||
#pragma function(memcpy)
|
#pragma function(memcpy)
|
||||||
|
|
@ -51,7 +53,9 @@ void *memcpy(void *dst, const void *src, size_t len)
|
||||||
|
|
||||||
/* NOLINTNEXTLINE(readability-redundant-declaration) */
|
/* NOLINTNEXTLINE(readability-redundant-declaration) */
|
||||||
extern void *memset(void *dst, int c, size_t len);
|
extern void *memset(void *dst, int c, size_t len);
|
||||||
|
#ifndef __INTEL_LLVM_COMPILER
|
||||||
#pragma intrinsic(memset)
|
#pragma intrinsic(memset)
|
||||||
|
#endif
|
||||||
|
|
||||||
#if !defined(__clang__)
|
#if !defined(__clang__)
|
||||||
#pragma function(memset)
|
#pragma function(memset)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue