From c6199df94e46103e0e67cb866fe5c8511684166e Mon Sep 17 00:00:00 2001 From: Philippe Houdoin Date: Tue, 20 May 2003 16:00:06 +0000 Subject: [PATCH] Fix unwanted C++ symbols mangling in the kernel module API userland emulation git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3264 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/tests/kits/net/new_stack/userland_modules.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/tests/kits/net/new_stack/userland_modules.cpp b/src/tests/kits/net/new_stack/userland_modules.cpp index 8fbd58643f..601ac6ac9c 100644 --- a/src/tests/kits/net/new_stack/userland_modules.cpp +++ b/src/tests/kits/net/new_stack/userland_modules.cpp @@ -86,6 +86,8 @@ static int32 g_next_module_id = 1; // Public routines // --------------- +extern "C" { + _EXPORT status_t get_module(const char * name, module_info ** mi) { status_t status; @@ -398,6 +400,8 @@ _EXPORT thread_id spawn_kernel_thread(thread_entry func, const char *name, long return spawn_thread(func, name, priority, arg); } +} // extern "C" + // #pragma mark - // Private routines