mirror of
https://github.com/Ai-Thinker-Open/Ai-Thinker-Open_RTL8710BX_ALIOS_SDK.git
synced 2025-03-22 20:42:55 +00:00
22 lines
361 B
C
22 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
|
||
|
|