diff options
| author | Magnus Holmgren <magnushol@gmail.com> | 2010-08-26 15:44:32 +0000 |
|---|---|---|
| committer | Magnus Holmgren <magnushol@gmail.com> | 2010-08-26 15:44:32 +0000 |
| commit | 1bf5777af2558ee2767616c29622e15625bde09b (patch) | |
| tree | f3aeb92aa8420c96ed59c6141b051e93acf2515f /apps/plugins/lib/pluginlib_exit.h | |
| parent | 41bac24abbbc39b3a78ee54eda53509a7539d4d8 (diff) | |
| download | rockbox-1bf5777af2558ee2767616c29622e15625bde09b.zip rockbox-1bf5777af2558ee2767616c29622e15625bde09b.tar.gz rockbox-1bf5777af2558ee2767616c29622e15625bde09b.tar.bz2 rockbox-1bf5777af2558ee2767616c29622e15625bde09b.tar.xz | |
Fix building simulator plugins on Cygwin. A DLL stub containing atexit is linked to the plugins, so give our version a prefix.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27893 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugins/lib/pluginlib_exit.h')
| -rw-r--r-- | apps/plugins/lib/pluginlib_exit.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/apps/plugins/lib/pluginlib_exit.h b/apps/plugins/lib/pluginlib_exit.h index 411d075..8170cf7 100644 --- a/apps/plugins/lib/pluginlib_exit.h +++ b/apps/plugins/lib/pluginlib_exit.h @@ -27,8 +27,12 @@ #include <stdlib.h> #include "gcc_extensions.h" -/* these are actually implemented in plugin_crt0.c which all plugins link */ -extern int atexit(void (*func)(void)); +/* these are actually implemented in plugin_crt0.c which all plugins link + * + * the cygwin/mingw shared library stub also defines atexit, so give our + * implementation a prefix */ +#define atexit rb_atexit +extern int rb_atexit(void (*func)(void)); extern void exit(int status) NORETURN_ATTR; /* these don't call the exit handlers */ extern void _exit(int status) NORETURN_ATTR; |