summaryrefslogtreecommitdiff
path: root/src/pal/inc/pal_safecrt.h
blob: d9e76cd783ed3f41075ac680f5b7c06ceeb00e00 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.

/*++



Module Name:

    pal_safecrt.h

Abstract:

Wrapper for including SafeCRT for Mac build of CoreCLR



--*/

#ifndef _PAL_SAFECRT_H_
#define _PAL_SAFECRT_H_

#define _CRT_ALTERNATIVE_INLINES
#define _SAFECRT_NO_INCLUDES 1

#if !defined (_SAFECRT_USE_INLINES)
#define _SAFECRT_USE_INLINES 0
#endif

#if !defined (_SAFECRT_IMPL)
#define _SAFECRT_IMPL 0
#endif

#define _SAFECRT_SET_ERRNO 0
#define _SAFECRT_DEFINE_MBS_FUNCTIONS 0
#define _SAFECRT_DEFINE_TCS_MACROS 1
//#define _SAFECRT_INVALID_PARAMETER(message) WARN(message "\n")

#if defined (SAFECRT_IN_PAL)

#define DUMMY_memset void * __cdecl memset(void *, int, size_t);

#endif

// Include the safecrt implementation
#include "../../palrt/inc/safecrt.h"

#if defined(SAFECRT_IN_PAL)

#define DUMMY_memset

#endif

#endif // _PAL_SAFECRT_H_