Mercurial > ecos-v3_0-branch
changeset 2860:b5788f54940d
Fix cyg_libc_signals_lock() and _unlock() inlining.
| author | bartv |
|---|---|
| date | Wed, 25 Mar 2009 14:32:49 +0000 |
| parents | a65c463473be |
| children | 1a71643da0b4 |
| files | packages/language/c/libc/signals/current/ChangeLog packages/language/c/libc/signals/current/include/signal.inl |
| diffstat | 2 files changed, 8 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/packages/language/c/libc/signals/current/ChangeLog +++ b/packages/language/c/libc/signals/current/ChangeLog @@ -1,3 +1,8 @@ +2009-03-25 Bart Veer <bartv@ecoscentric.com> + + * include/signal.inl: add extern to the cyg_libc_signals_lock() + and _unlock() inlining, to prevent multiple definitions. + 2009-01-28 Bart Veer <bartv@ecoscentric.com> * tests/signal1.c: skip the abort() test if there is no proper
--- a/packages/language/c/libc/signals/current/include/signal.inl +++ b/packages/language/c/libc/signals/current/include/signal.inl @@ -10,7 +10,7 @@ // ####ECOSGPLCOPYRIGHTBEGIN#### // ------------------------------------------- // This file is part of eCos, the Embedded Configurable Operating System. -// Copyright (C) 1998, 1999, 2000, 2001, 2002 Free Software Foundation, Inc. +// Copyright (C) 1998, 1999, 2000, 2001, 2002, 2009 Free Software Foundation, Inc. // // eCos is free software; you can redistribute it and/or modify it under // the terms of the GNU General Public License as published by the Free @@ -102,7 +102,7 @@ extern void cyg_libc_signals_lock_do_unl // cyg_libc_signals_lock() // ///////////////////////////// -inline cyg_bool +extern __inline__ cyg_bool cyg_libc_signals_lock(void) { #ifdef CYGSEM_LIBC_SIGNALS_THREAD_SAFE @@ -116,7 +116,7 @@ cyg_libc_signals_lock(void) // cyg_libc_signals_unlock() // /////////////////////////////// -inline void +extern __inline__ void cyg_libc_signals_unlock(void) { #ifdef CYGSEM_LIBC_SIGNALS_THREAD_SAFE
