• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright (c) Huawei Technologies Co., Ltd. 2014-2021. All rights reserved.
3  * Licensed under Mulan PSL v2.
4  * You can use this software according to the terms and conditions of the Mulan PSL v2.
5  * You may obtain a copy of Mulan PSL v2 at:
6  *          http://license.coscl.org.cn/MulanPSL2
7  * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
8  * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
9  * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
10  * See the Mulan PSL v2 for more details.
11  * Description: By defining corresponding macro for UNICODE string and including "output.inl",
12  *              this file generates real underlying function used by printf family API.
13  * Create: 2014-02-25
14  */
15 
16 /* If some platforms don't have wchar.h, don't include it */
17 #if !(defined(SECUREC_VXWORKS_PLATFORM))
18 /* If there is no macro above, it will cause compiling alarm */
19 #if defined(_MSC_VER) && (_MSC_VER >= 1400)
20 #ifndef _CRTIMP_ALTERNATIVE
21 #define _CRTIMP_ALTERNATIVE     /* Comment microsoft *_s function */
22 #endif
23 #ifndef __STDC_WANT_SECURE_LIB__
24 #define __STDC_WANT_SECURE_LIB__ 0
25 #endif
26 #endif
27 #include <wchar.h>
28 #endif
29 
30 /* fix redefined */
31 #undef SECUREC_ENABLE_WCHAR_FUNC
32 /* Disable wchar func to clear vs warning */
33 #define SECUREC_ENABLE_WCHAR_FUNC   0
34 #define SECUREC_FORMAT_OUTPUT_INPUT 1
35 
36 #ifndef SECUREC_FOR_WCHAR
37 #define SECUREC_FOR_WCHAR
38 #endif
39 
40 #include "secureprintoutput.h"
41 
42 #include "output.inl"
43 
44