• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright (c) 2021 Huawei Device Co., Ltd.
3  * Licensed under the Apache License, Version 2.0 (the "License");
4  * you may not use this file except in compliance with the License.
5  * You may obtain a copy of the License at
6  *
7  *     http://www.apache.org/licenses/LICENSE-2.0
8  *
9  * Unless required by applicable law or agreed to in writing, software
10  * distributed under the License is distributed on an "AS IS" BASIS,
11  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12  * See the License for the specific language governing permissions and
13  * limitations under the License.
14  */
15 
16 
17 #if defined(_MSC_VER) && (_MSC_VER >= 1400)
18 #ifdef __STDC_WANT_SECURE_LIB__
19 #undef __STDC_WANT_SECURE_LIB__
20 #endif
21 #ifdef _CRTIMP_ALTERNATIVE
22 #undef _CRTIMP_ALTERNATIVE
23 #endif
24 #define __STDC_WANT_SECURE_LIB__ 0
25 #define _CRTIMP_ALTERNATIVE     //comment microsoft *_s function
26 #endif
27 
28 /* if some platforms don't have wchar.h, don't include it */
29 #if !(defined(SECUREC_VXWORKS_PLATFORM))
30 /* This header file is placed below secinput.h, which will cause tool alarm,
31   * but  If there is no macro above, it will cause compiling alarm */
32 #include <wchar.h>
33 #endif
34 #include "secinput.h"
35 
36 #ifndef SECUREC_FOR_WCHAR
37 #define SECUREC_FOR_WCHAR
38 #endif
39 
40 #ifndef WEOF
41 #define WEOF ((wchar_t)-1)
42 #endif
43 
44 #if defined(SECUREC_VXWORKS_PLATFORM) && !defined(__WINT_TYPE__)
45 typedef wchar_t wint_t;
46 #endif
47 
48 typedef wint_t SecInt;
49 typedef wint_t SecUnsignedInt;
50 typedef wchar_t SecChar;
51 typedef wchar_t SecUnsignedChar;
52 
53 #include "input.inl"
54 
55