|
Last change
on this file was
2,
checked in by jglee, 11 years ago
|
|
first commit
|
-
Property svn:executable set to
*
|
|
File size:
782 bytes
|
| Line | |
|---|
| 1 | /* Copyright (C) 2005 Manuel Novoa III <mjn3@codepoet.org> |
|---|
| 2 | * |
|---|
| 3 | * GNU Library General Public License (LGPL) version 2 or later. |
|---|
| 4 | * |
|---|
| 5 | * Dedicated to Toni. See uClibc/DEDICATION.mjn3 for details. |
|---|
| 6 | */ |
|---|
| 7 | |
|---|
| 8 | #ifndef _UCLIBC_VA_COPY_H |
|---|
| 9 | #define _UCLIBC_VA_COPY_H 1 |
|---|
| 10 | |
|---|
| 11 | #include <stdarg.h> |
|---|
| 12 | |
|---|
| 13 | /* Deal with pre-C99 compilers. */ |
|---|
| 14 | #ifndef va_copy |
|---|
| 15 | |
|---|
| 16 | #ifdef __va_copy |
|---|
| 17 | #define va_copy(A,B) __va_copy(A,B) |
|---|
| 18 | #else |
|---|
| 19 | #warning Neither va_copy (C99/SUSv3) or __va_copy is defined. Using a simple copy instead. But you should really check that this is appropriate and supply an arch-specific override if necessary. |
|---|
| 20 | /* the glibc manual suggests that this will usually suffice when |
|---|
| 21 | __va_copy doesn't exist. */ |
|---|
| 22 | #define va_copy(A,B) A = B |
|---|
| 23 | #endif |
|---|
| 24 | |
|---|
| 25 | #endif /* va_copy */ |
|---|
| 26 | |
|---|
| 27 | #endif /* _UCLIBC_VA_COPY_H */ |
|---|
Note: See
TracBrowser
for help on using the repository browser.