pal_safecrt.h 962 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. //
  2. // Copyright (c) Microsoft. All rights reserved.
  3. // Licensed under the MIT license. See LICENSE file in the project root for full license information.
  4. //
  5. /*++
  6. Module Name:
  7. pal_safecrt.h
  8. Abstract:
  9. Wrapper for including SafeCRT for Mac build of CoreCLR
  10. --*/
  11. #ifndef _PAL_SAFECRT_H_
  12. #define _PAL_SAFECRT_H_
  13. #define _CRT_ALTERNATIVE_INLINES
  14. #define _SAFECRT_NO_INCLUDES 1
  15. #if !defined (_SAFECRT_USE_INLINES)
  16. #define _SAFECRT_USE_INLINES 0
  17. #endif
  18. #if !defined (_SAFECRT_IMPL)
  19. #define _SAFECRT_IMPL 0
  20. #endif
  21. #define _SAFECRT_SET_ERRNO 0
  22. #define _SAFECRT_DEFINE_MBS_FUNCTIONS 0
  23. #define _SAFECRT_DEFINE_TCS_MACROS 1
  24. //#define _SAFECRT_INVALID_PARAMETER(message) WARN(message "\n")
  25. #if defined (SAFECRT_IN_PAL)
  26. #define DUMMY_memset void * __cdecl memset(void *, int, size_t);
  27. #endif
  28. // Include the safecrt implementation
  29. #include "../../palrt/inc/safecrt.h"
  30. #if defined(SAFECRT_IN_PAL)
  31. #define DUMMY_memset
  32. #endif
  33. #endif // _PAL_SAFECRT_H_