Danger! The size of empty structures differs between C and C++, so we have to put something in, if we want to use them from both.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@11314 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
734e07cedb
commit
f19279abda
@ -33,7 +33,10 @@ struct arch_thread {
|
||||
};
|
||||
|
||||
struct arch_team {
|
||||
// nothing here
|
||||
// gcc treats empty structures as zero-length in C, but as if they contain
|
||||
// a char in C++. So we have to put a dummy in to be able to use the struct
|
||||
// from both in a consistent way.
|
||||
char dummy;
|
||||
};
|
||||
|
||||
struct arch_fork_arg {
|
||||
|
Loading…
Reference in New Issue
Block a user