Mercurial > hg > CbC > CbC_gcc
comparison gcc/ginclude/stdarg.h @ 111:04ced10e8804
gcc 7
author | kono |
---|---|
date | Fri, 27 Oct 2017 22:46:09 +0900 |
parents | a06113de4d67 |
children | 84e7813d76e9 |
comparison
equal
deleted
inserted
replaced
68:561a7518be6b | 111:04ced10e8804 |
---|---|
1 /* Copyright (C) 1989, 1997, 1998, 1999, 2000, 2009 Free Software Foundation, Inc. | 1 /* Copyright (C) 1989-2017 Free Software Foundation, Inc. |
2 | 2 |
3 This file is part of GCC. | 3 This file is part of GCC. |
4 | 4 |
5 GCC is free software; you can redistribute it and/or modify | 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 | 6 it under the terms of the GNU General Public License as published by |
45 #ifdef _STDARG_H | 45 #ifdef _STDARG_H |
46 | 46 |
47 #define va_start(v,l) __builtin_va_start(v,l) | 47 #define va_start(v,l) __builtin_va_start(v,l) |
48 #define va_end(v) __builtin_va_end(v) | 48 #define va_end(v) __builtin_va_end(v) |
49 #define va_arg(v,l) __builtin_va_arg(v,l) | 49 #define va_arg(v,l) __builtin_va_arg(v,l) |
50 #if !defined(__STRICT_ANSI__) || __STDC_VERSION__ + 0 >= 199900L || defined(__GXX_EXPERIMENTAL_CXX0X__) | 50 #if !defined(__STRICT_ANSI__) || __STDC_VERSION__ + 0 >= 199900L \ |
51 || __cplusplus + 0 >= 201103L | |
51 #define va_copy(d,s) __builtin_va_copy(d,s) | 52 #define va_copy(d,s) __builtin_va_copy(d,s) |
52 #endif | 53 #endif |
53 #define __va_copy(d,s) __builtin_va_copy(d,s) | 54 #define __va_copy(d,s) __builtin_va_copy(d,s) |
54 | 55 |
55 /* Define va_list, if desired, from __gnuc_va_list. */ | 56 /* Define va_list, if desired, from __gnuc_va_list. */ |
56 /* We deliberately do not define va_list when called from | 57 /* We deliberately do not define va_list when called from |
57 stdio.h, because ANSI C says that stdio.h is not supposed to define | 58 stdio.h, because ANSI C says that stdio.h is not supposed to define |
58 va_list. stdio.h needs to have access to that data type, | 59 va_list. stdio.h needs to have access to that data type, |
59 but must not use that name. It should use the name __gnuc_va_list, | 60 but must not use that name. It should use the name __gnuc_va_list, |
60 which is safe because it is reserved for the implementation. */ | 61 which is safe because it is reserved for the implementation. */ |
61 | |
62 #ifdef _HIDDEN_VA_LIST /* On OSF1, this means varargs.h is "half-loaded". */ | |
63 #undef _VA_LIST | |
64 #endif | |
65 | 62 |
66 #ifdef _BSD_VA_LIST | 63 #ifdef _BSD_VA_LIST |
67 #undef _BSD_VA_LIST | 64 #undef _BSD_VA_LIST |
68 #endif | 65 #endif |
69 | 66 |