From b502275bc845e06f60e75018d0972fd6cabd54a7 Mon Sep 17 00:00:00 2001 From: Ingo Weinhold Date: Thu, 4 Nov 2010 11:07:01 +0000 Subject: [PATCH] exit.c -> exit.cpp git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39295 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/system/libroot/posix/stdlib/Jamfile | 2 +- src/system/libroot/posix/stdlib/{exit.c => exit.cpp} | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) rename src/system/libroot/posix/stdlib/{exit.c => exit.cpp} (96%) diff --git a/src/system/libroot/posix/stdlib/Jamfile b/src/system/libroot/posix/stdlib/Jamfile index dd2711e0ad..388f1368e4 100644 --- a/src/system/libroot/posix/stdlib/Jamfile +++ b/src/system/libroot/posix/stdlib/Jamfile @@ -11,7 +11,7 @@ MergeObject posix_stdlib.o : bsearch.c div.c env.cpp - exit.c + exit.cpp getsubopt.cpp heapsort.c merge.c diff --git a/src/system/libroot/posix/stdlib/exit.c b/src/system/libroot/posix/stdlib/exit.cpp similarity index 96% rename from src/system/libroot/posix/stdlib/exit.c rename to src/system/libroot/posix/stdlib/exit.cpp index b27b5b9220..8e4080abae 100644 --- a/src/system/libroot/posix/stdlib/exit.c +++ b/src/system/libroot/posix/stdlib/exit.cpp @@ -21,8 +21,8 @@ #include -extern void _IO_cleanup(void); -extern void _thread_do_exit_work(void); +extern "C" void _IO_cleanup(void); +extern "C" void _thread_do_exit_work(void); struct exit_stack_info { void (*exit_stack[ATEXIT_MAX])(void);