Fixed some C++ build issues with fd.h.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3231 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
b263fa5a63
commit
976b0da0d6
@ -76,12 +76,13 @@ static struct io_context *get_current_io_context(bool kernel);
|
||||
|
||||
/* Inlines */
|
||||
|
||||
static __inline struct io_context *get_current_io_context(bool kernel)
|
||||
static inline struct io_context *
|
||||
get_current_io_context(bool kernel)
|
||||
{
|
||||
if (kernel)
|
||||
return team_get_kernel_team()->io_context;
|
||||
return (struct io_context *)team_get_kernel_team()->io_context;
|
||||
|
||||
return thread_get_current_thread()->team->io_context;
|
||||
return (struct io_context *)thread_get_current_thread()->team->io_context;
|
||||
}
|
||||
|
||||
#endif /* _FD_H */
|
||||
|
Loading…
Reference in New Issue
Block a user