From 2ed64c408dbaaf00502572ff020260e6c379a014 Mon Sep 17 00:00:00 2001 From: Ingo Weinhold Date: Sat, 31 May 2008 16:39:56 +0000 Subject: [PATCH] Patch by Michael Lotz fixing a missing typedef when compiling with native compiler gcc 2 and cross-compiler gcc 4. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@25740 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/tools/gensyscalls/gensyscalls.h | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/tools/gensyscalls/gensyscalls.h b/src/tools/gensyscalls/gensyscalls.h index 0c7ec2dcc8..25630efd1e 100644 --- a/src/tools/gensyscalls/gensyscalls.h +++ b/src/tools/gensyscalls/gensyscalls.h @@ -1,6 +1,16 @@ #ifndef GENSYSCALLS_H #define GENSYSCALLS_H +// TODO: is pre-processed with the cross-compiler, but the +// pre-processed header is compiled with the native compiler. Unfortunately +// is included indirectly, which results in a missing typedef when +// the host compiler is gcc 2 and the native compiler gcc 4. The type is never +// really used, so this doesn't really matter what it is defined to. The better +// solution would be to remove the dependency, though. +#if __GNUC__ == 2 +typedef void *__builtin_va_list; +#endif + // Type class Type { public: