diff options
Diffstat (limited to 'include/rtdef.h')
| -rw-r--r-- | include/rtdef.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/include/rtdef.h b/include/rtdef.h index 8fd4518642..cb1fb7a9a9 100644 --- a/include/rtdef.h +++ b/include/rtdef.h @@ -178,8 +178,12 @@ typedef rt_base_t rt_off_t; /**< Type for offset */ /* initialization export */ #ifdef RT_USING_COMPONENTS_INIT typedef int (*init_fn_t)(void); -#define INIT_EXPORT(fn, level) \ - const init_fn_t __rt_init_##fn SECTION(".rti_fn."level) = fn +#ifdef _MSC_VER /* we do not support MS VC++ compiler */ + #define INIT_EXPORT(fn, level) +#else + #define INIT_EXPORT(fn, level) \ + const init_fn_t __rt_init_##fn SECTION(".rti_fn."level) = fn +#endif #else #define INIT_EXPORT(fn, level) #endif |
