| 1 | /** |
| 2 | * This file has no copyright assigned and is placed in the Public Domain. |
| 3 | * This file is part of the mingw-w64 runtime package. |
| 4 | * No warranty is given; refer to the file DISCLAIMER.PD within this package. |
| 5 | */ |
| 6 | #ifndef _INC_CORECRT_MEMORY |
| 7 | #define _INC_CORECRT_MEMORY |
| 8 | |
| 9 | #include <crtdefs.h> |
| 10 | |
| 11 | #if defined(__LIBMSVCRT__) |
| 12 | /* When building mingw-w64, this should be blank. */ |
| 13 | #define _SECIMP |
| 14 | #else |
| 15 | #ifndef _SECIMP |
| 16 | #define _SECIMP __declspec(dllimport) |
| 17 | #endif /* _SECIMP */ |
| 18 | #endif /* defined(__LIBMSVCRT__) */ |
| 19 | |
| 20 | #ifdef __cplusplus |
| 21 | extern "C" { |
| 22 | #endif |
| 23 | |
| 24 | #ifndef _CONST_RETURN |
| 25 | #define _CONST_RETURN |
| 26 | #endif |
| 27 | |
| 28 | #define _WConst_return _CONST_RETURN |
| 29 | |
| 30 | #ifndef _CRT_MEMORY_DEFINED |
| 31 | #define _CRT_MEMORY_DEFINED |
| 32 | _CRTIMP void *__cdecl _memccpy(void *_Dst,const void *_Src,int _Val,size_t _MaxCount); |
| 33 | #if !defined(__STRICT_ANSI__) || defined(_GNU_SOURCE) || __STDC_VERSION__ + 0 >= 202311L || _XOPEN_SOURCE + 0 >= 600 |
| 34 | void * __cdecl memccpy(void *_Dst,const void *_Src,int _Val,size_t _Size); |
| 35 | #endif |
| 36 | _CONST_RETURN void *__cdecl memchr(const void *_Buf ,int _Val,size_t _MaxCount); |
| 37 | _CRTIMP int __cdecl _memicmp(const void *_Buf1,const void *_Buf2,size_t _Size); |
| 38 | _CRTIMP int __cdecl _memicmp_l(const void *_Buf1,const void *_Buf2,size_t _Size,_locale_t _Locale); |
| 39 | int __cdecl memcmp(const void *_Buf1,const void *_Buf2,size_t _Size); |
| 40 | void * __cdecl memcpy(void * __restrict__ _Dst,const void * __restrict__ _Src,size_t _Size) __MINGW_ATTRIB_DEPRECATED_SEC_WARN; |
| 41 | _SECIMP errno_t __cdecl memcpy_s (void *_dest,size_t _numberOfElements,const void *_src,size_t _count); |
| 42 | void * __cdecl mempcpy (void *_Dst, const void *_Src, size_t _Size); |
| 43 | void * __cdecl memset(void *_Dst,int _Val,size_t _Size); |
| 44 | #if !defined(__STRICT_ANSI__) || __STDC_VERSION__ + 0 >= 202311L |
| 45 | void * __cdecl memset_explicit(void *_Dst,int _Val,size_t _Size); |
| 46 | #endif |
| 47 | |
| 48 | #ifndef	NO_OLDNAMES |
| 49 | void * __cdecl memccpy(void *_Dst,const void *_Src,int _Val,size_t _Size) __MINGW_ATTRIB_DEPRECATED_MSVC2005; |
| 50 | int __cdecl memicmp(const void *_Buf1,const void *_Buf2,size_t _Size) __MINGW_ATTRIB_DEPRECATED_MSVC2005; |
| 51 | #endif |
| 52 | #endif |
| 53 | |
| 54 | #ifdef __cplusplus |
| 55 | } |
| 56 | #endif |
| 57 | #endif |