mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-09-05 19:08:12 +00:00
memset and memcpy are not intrinsic functions in new LLVM-based Intel compiler
This commit is contained in:

committed by
Anonymous Maarten

parent
4be82202de
commit
a06046c55c
@@ -38,7 +38,9 @@ __declspec(selectany) int _fltused = 1;
|
||||
#if (_MSC_VER >= 1400) && (!defined(_MT) || defined(DLL_EXPORT))
|
||||
/* NOLINTNEXTLINE(readability-redundant-declaration) */
|
||||
extern void *memcpy(void *dst, const void *src, size_t len);
|
||||
#ifndef __INTEL_LLVM_COMPILER
|
||||
#pragma intrinsic(memcpy)
|
||||
#endif
|
||||
|
||||
#if !defined(__clang__)
|
||||
#pragma function(memcpy)
|
||||
@@ -51,7 +53,9 @@ void *memcpy(void *dst, const void *src, size_t len)
|
||||
|
||||
/* NOLINTNEXTLINE(readability-redundant-declaration) */
|
||||
extern void *memset(void *dst, int c, size_t len);
|
||||
#ifndef __INTEL_LLVM_COMPILER
|
||||
#pragma intrinsic(memset)
|
||||
#endif
|
||||
|
||||
#if !defined(__clang__)
|
||||
#pragma function(memset)
|
||||
|
Reference in New Issue
Block a user