diff options
author | Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> | 2006-09-12 13:27:55 +0000 |
---|---|---|
committer | Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> | 2006-09-12 13:27:55 +0000 |
commit | b5f50ea3446980984637ad5fac6bd3890102027b (patch) | |
tree | 98fdcda294822aa89f2e7bad386d53dac71e2ff7 /include | |
parent | 428a5cd0d32a3a4badf0a1f62f1126a24723545f (diff) | |
download | busybox-w32-b5f50ea3446980984637ad5fac6bd3890102027b.tar.gz busybox-w32-b5f50ea3446980984637ad5fac6bd3890102027b.tar.bz2 busybox-w32-b5f50ea3446980984637ad5fac6bd3890102027b.zip |
- small trivia to be gentle to gcc-2.95.x which had no va_copy but only __va_copy.
Diffstat (limited to 'include')
-rw-r--r-- | include/platform.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/include/platform.h b/include/platform.h index ca6f3634f..fdaf50920 100644 --- a/include/platform.h +++ b/include/platform.h | |||
@@ -75,6 +75,14 @@ | |||
75 | # endif | 75 | # endif |
76 | #endif | 76 | #endif |
77 | 77 | ||
78 | /* gcc-2.95 had no va_copy but only __va_copy. */ | ||
79 | #if !__GNUC_PREREQ (3,0) | ||
80 | # include <stdarg.h> | ||
81 | # if !defined va_copy && defined __va_copy | ||
82 | # define va_copy(d,s) __va_copy((d),(s)) | ||
83 | # endif | ||
84 | #endif | ||
85 | |||
78 | /* ---- Endian Detection ------------------------------------ */ | 86 | /* ---- Endian Detection ------------------------------------ */ |
79 | 87 | ||
80 | #if (defined __digital__ && defined __unix__) | 88 | #if (defined __digital__ && defined __unix__) |