summaryrefslogtreecommitdiff
path: root/src/pal/inc/pal_safecrt.h
blob: b1a2a2d8e11e070b297552f285d43acec9e7ab45 (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
56
//
// Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license 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_