Commit e21127bf authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

Use weak symbol only on ELF targets

parent 8dd3b987
......@@ -71,11 +71,12 @@ static void module_StoreBank (module_t *module)
modules.head = module;
}
#ifdef __GNUC__
#ifdef __ELF__
# ifdef __GNUC__
__attribute__((weak))
#else
#pragma weak vlc_static_modules
#endif
# else
# pragma weak vlc_static_modules
# endif
extern vlc_plugin_cb vlc_static_modules[];
static void module_InitStaticModules(void)
......@@ -89,6 +90,9 @@ static void module_InitStaticModules(void)
module_StoreBank (module);
}
}
#else
static void module_InitStaticModules(void) { }
#endif
/**
* Init bank
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment