From e5430a086c769ea76c3944046b1f07cf049c1ae0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Axel=20D=C3=B6rfler?= Date: Fri, 27 Jun 2003 02:25:02 +0000 Subject: [PATCH] Exports the userland C++ API only when included for userland usage. git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3673 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- headers/os/storage/NodeMonitor.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/headers/os/storage/NodeMonitor.h b/headers/os/storage/NodeMonitor.h index d02d331ace..238db1fee7 100644 --- a/headers/os/storage/NodeMonitor.h +++ b/headers/os/storage/NodeMonitor.h @@ -48,7 +48,7 @@ enum { * API exported. */ -#ifdef __cplusplus +#if defined(__cplusplus) && !defined(_KERNEL_MODE) // these are only needed for the function exports #include @@ -66,6 +66,6 @@ extern status_t watch_node(const node_ref *node, uint32 flags, extern status_t stop_watching(BMessenger target); extern status_t stop_watching(const BHandler *handler, const BLooper *looper = NULL); -#endif /* __cplusplus */ +#endif /* __cplusplus && !_KERNEL_MODE */ #endif /* _NODE_MONITOR_H*/