Skip to content

Commit 964dc80

Browse files
author
Sebastien Bourdeauducq
committedJun 2, 2012
software: stdarg.h: cleanup and add va_copy
1 parent 5fe1aad commit 964dc80

File tree

1 file changed

+5
-14
lines changed

1 file changed

+5
-14
lines changed
 

Diff for: ‎software/include/base/stdarg.h

+5-14
Original file line numberDiff line numberDiff line change
@@ -3,20 +3,11 @@
33

44
#include <stdlib.h>
55

6-
#if (__GNUC__ > 4) || ((__GNUC__ == 4) && (__GNUC_MINOR__ >= 4))
7-
#define va_start(v,l) __builtin_va_start((v),l)
8-
#else
9-
#define va_start(v,l) __builtin_stdarg_start((v),l)
10-
#endif
11-
12-
#define va_arg(ap, type) \
13-
__builtin_va_arg((ap), type)
14-
15-
#define va_end(ap) \
16-
__builtin_va_end(ap)
17-
18-
#define va_list \
19-
__builtin_va_list
6+
#define va_start(v, l) __builtin_va_start((v), l)
7+
#define va_arg(ap, type) __builtin_va_arg((ap), type)
8+
#define va_copy(aq, ap) __builtin_va_copy((aq), (ap))
9+
#define va_end(ap) __builtin_va_end(ap)
10+
#define va_list __builtin_va_list
2011

2112
int vsnprintf(char *buf, size_t size, const char *fmt, va_list args);
2213
int vscnprintf(char *buf, size_t size, const char *fmt, va_list args);

0 commit comments

Comments
 (0)
Please sign in to comment.