memory.h 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  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_MEMORY
  7. #define _INC_MEMORY
  8. #include <crtdefs.h>
  9. #if defined(__LIBMSVCRT__)
  10. /* When building mingw-w64, this should be blank. */
  11. #define _SECIMP
  12. #else
  13. #ifndef _SECIMP
  14. #define _SECIMP __declspec(dllimport)
  15. #endif /* _SECIMP */
  16. #endif /* defined(__LIBMSVCRT__) */
  17. #ifdef __cplusplus
  18. extern "C" {
  19. #endif
  20. #ifndef _CONST_RETURN
  21. #define _CONST_RETURN
  22. #endif
  23. #define _WConst_return _CONST_RETURN
  24. #ifndef _CRT_MEMORY_DEFINED
  25. #define _CRT_MEMORY_DEFINED
  26. _CRTIMP void *__cdecl _memccpy(void *_Dst,const void *_Src,int _Val,size_t _MaxCount);
  27. _CONST_RETURN void *__cdecl memchr(const void *_Buf ,int _Val,size_t _MaxCount);
  28. _CRTIMP int __cdecl _memicmp(const void *_Buf1,const void *_Buf2,size_t _Size);
  29. _CRTIMP int __cdecl _memicmp_l(const void *_Buf1,const void *_Buf2,size_t _Size,_locale_t _Locale);
  30. int __cdecl memcmp(const void *_Buf1,const void *_Buf2,size_t _Size);
  31. void * __cdecl memcpy(void * __restrict__ _Dst,const void * __restrict__ _Src,size_t _Size) __MINGW_ATTRIB_DEPRECATED_SEC_WARN;
  32. _SECIMP errno_t __cdecl memcpy_s (void *_dest,size_t _numberOfElements,const void *_src,size_t _count);
  33. void * __cdecl mempcpy (void *_Dst, const void *_Src, size_t _Size);
  34. void * __cdecl memset(void *_Dst,int _Val,size_t _Size);
  35. #ifndef NO_OLDNAMES
  36. void * __cdecl memccpy(void *_Dst,const void *_Src,int _Val,size_t _Size) __MINGW_ATTRIB_DEPRECATED_MSVC2005;
  37. int __cdecl memicmp(const void *_Buf1,const void *_Buf2,size_t _Size) __MINGW_ATTRIB_DEPRECATED_MSVC2005;
  38. #endif
  39. #endif
  40. #ifdef __cplusplus
  41. }
  42. #endif
  43. #endif