remove initialization feature for MS VC++ compiler

This commit is contained in:
Bernard Xiong
2013-07-05 19:32:16 -04:00
parent b0c1f8a79b
commit ca56dce2a3
2 changed files with 85 additions and 24 deletions
+6 -2
View File
@@ -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