1 | /* Copyright (C) 2002-2021 Free Software Foundation, Inc.
|
---|
2 |
|
---|
3 | This file is part of GCC.
|
---|
4 |
|
---|
5 | GCC is free software; you can redistribute it and/or modify
|
---|
6 | it under the terms of the GNU General Public License as published by
|
---|
7 | the Free Software Foundation; either version 3, or (at your option)
|
---|
8 | any later version.
|
---|
9 |
|
---|
10 | GCC is distributed in the hope that it will be useful,
|
---|
11 | but WITHOUT ANY WARRANTY; without even the implied warranty of
|
---|
12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
---|
13 | GNU General Public License for more details.
|
---|
14 |
|
---|
15 | Under Section 7 of GPL version 3, you are granted additional
|
---|
16 | permissions described in the GCC Runtime Library Exception, version
|
---|
17 | 3.1, as published by the Free Software Foundation.
|
---|
18 |
|
---|
19 | You should have received a copy of the GNU General Public License and
|
---|
20 | a copy of the GCC Runtime Library Exception along with this program;
|
---|
21 | see the files COPYING3 and COPYING.RUNTIME respectively. If not, see
|
---|
22 | <http://www.gnu.org/licenses/>. */
|
---|
23 |
|
---|
24 | #ifndef __CROSS_STDARG_H_INCLUDED
|
---|
25 | #define __CROSS_STDARG_H_INCLUDED
|
---|
26 |
|
---|
27 | /* Make sure that for non x64 targets cross builtins are defined. */
|
---|
28 | #ifndef __x86_64__
|
---|
29 | /* Call abi ms_abi. */
|
---|
30 | #define __builtin_ms_va_list __builtin_va_list
|
---|
31 | #define __builtin_ms_va_copy __builtin_va_copy
|
---|
32 | #define __builtin_ms_va_start __builtin_va_start
|
---|
33 | #define __builtin_ms_va_end __builtin_va_end
|
---|
34 |
|
---|
35 | /* Call abi sysv_abi. */
|
---|
36 | #define __builtin_sysv_va_list __builtin_va_list
|
---|
37 | #define __builtin_sysv_va_copy __builtin_va_copy
|
---|
38 | #define __builtin_sysv_va_start __builtin_va_start
|
---|
39 | #define __builtin_sysv_va_end __builtin_va_end
|
---|
40 | #endif
|
---|
41 |
|
---|
42 | #define __ms_va_copy(__d,__s) __builtin_ms_va_copy(__d,__s)
|
---|
43 | #define __ms_va_start(__v,__l) __builtin_ms_va_start(__v,__l)
|
---|
44 | #define __ms_va_arg(__v,__l) __builtin_va_arg(__v,__l)
|
---|
45 | #define __ms_va_end(__v) __builtin_ms_va_end(__v)
|
---|
46 |
|
---|
47 | #define __sysv_va_copy(__d,__s) __builtin_sysv_va_copy(__d,__s)
|
---|
48 | #define __sysv_va_start(__v,__l) __builtin_sysv_va_start(__v,__l)
|
---|
49 | #define __sysv_va_arg(__v,__l) __builtin_va_arg(__v,__l)
|
---|
50 | #define __sysv_va_end(__v) __builtin_sysv_va_end(__v)
|
---|
51 |
|
---|
52 | #ifndef __GNUC_SYSV_VA_LIST
|
---|
53 | #define __GNUC_SYSV_VA_LIST
|
---|
54 | typedef __builtin_sysv_va_list __gnuc_sysv_va_list;
|
---|
55 | #endif
|
---|
56 |
|
---|
57 | #ifndef _SYSV_VA_LIST_DEFINED
|
---|
58 | #define _SYSV_VA_LIST_DEFINED
|
---|
59 | typedef __gnuc_sysv_va_list sysv_va_list;
|
---|
60 | #endif
|
---|
61 |
|
---|
62 | #ifndef __GNUC_MS_VA_LIST
|
---|
63 | #define __GNUC_MS_VA_LIST
|
---|
64 | typedef __builtin_ms_va_list __gnuc_ms_va_list;
|
---|
65 | #endif
|
---|
66 |
|
---|
67 | #ifndef _MS_VA_LIST_DEFINED
|
---|
68 | #define _MS_VA_LIST_DEFINED
|
---|
69 | typedef __gnuc_ms_va_list ms_va_list;
|
---|
70 | #endif
|
---|
71 |
|
---|
72 | #endif /* __CROSS_STDARG_H_INCLUDED */
|
---|