mirror of
https://github.com/Ai-Thinker-Open/Ai-Thinker-Open_RTL8710BX_ALIOS_SDK.git
synced 2025-02-10 22:35:20 +00:00
21 lines
361 B
C
21 lines
361 B
C
/*
|
|
* Copyright (C) 2015-2017 Alibaba Group Holding Limited
|
|
*/
|
|
|
|
#if defined(__GNUC__)
|
|
typedef void (*cpp_func) ();
|
|
extern cpp_func __ctors_start__[];
|
|
extern cpp_func __ctors_end__[];
|
|
|
|
__attribute__((weak)) void * __dso_handle = 0;
|
|
|
|
void cpp_init(void)
|
|
{
|
|
cpp_func *f;
|
|
|
|
for (f = __ctors_start__; f < __ctors_end__; f++) {
|
|
(*f)();
|
|
}
|
|
}
|
|
#endif
|
|
|