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
This commit is contained in:
Ingo Weinhold
2008-05-31 16:39:56 +00:00
parent 3736cb7d04
commit 2ed64c408d
+10
View File
@@ -1,6 +1,16 @@
#ifndef GENSYSCALLS_H
#define GENSYSCALLS_H
// TODO: <syscalls.h> is pre-processed with the cross-compiler, but the
// pre-processed header is compiled with the native compiler. Unfortunately
// <stdarg.h> 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 <stdarg.h> dependency, though.
#if __GNUC__ == 2
typedef void *__builtin_va_list;
#endif
// Type
class Type {
public: