forked from len0rd/rockbox
Move setjmp to lib and add setjmp for sh (imported from newlib) and compile it as separate library.
It's used by both, plugins and codecs, and sh/hwcodec doesn't compile codecs so it doesn't fit into sources. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27869 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
20de4c55a2
commit
46454ac2a8
16 changed files with 1118 additions and 38 deletions
|
|
@ -75,19 +75,3 @@ pluginlib_albumart.c
|
|||
#ifdef HAVE_TOUCHSCREEN
|
||||
pluginlib_touchscreen.c
|
||||
#endif
|
||||
|
||||
#if (CONFIG_PLATFORM & PLATFORM_NATIVE)
|
||||
|
||||
#ifdef CPU_ARM
|
||||
../../codecs/lib/setjmp_arm.S
|
||||
#endif
|
||||
|
||||
#ifdef CPU_COLDFIRE
|
||||
../../codecs/lib/setjmp_cf.S
|
||||
#endif
|
||||
|
||||
#ifdef CPU_MIPS
|
||||
../../codecs/lib/setjmp_mips.S
|
||||
#endif
|
||||
|
||||
#endif /* PLATFORM_NATIVE */
|
||||
|
|
|
|||
|
|
@ -23,11 +23,7 @@
|
|||
#define __PLUGINLIB_EXIT_H__
|
||||
|
||||
#include "config.h"
|
||||
#if (CONFIG_PLATFORM & PLATFORM_NATIVE)
|
||||
#include "../../codecs/lib/setjmp.h"
|
||||
#else
|
||||
#include <setjmp.h>
|
||||
#endif
|
||||
|
||||
#define _PLUGINLIB_EXIT_INIT(atexit) switch(setjmp(__exit_env)) \
|
||||
{ \
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue