From ca56dce2a31944322384cabc074b6f6ce9660e55 Mon Sep 17 00:00:00 2001 From: Bernard Xiong Date: Fri, 5 Jul 2013 19:32:16 -0400 Subject: remove initialization feature for MS VC++ compiler --- include/rtdef.h | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'include') diff --git a/include/rtdef.h b/include/rtdef.h index 9aaf90b714..83a6398b93 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 -- cgit v1.3.1 From 8c0d4d2ad887017bde508ad0522d19b42c893cac Mon Sep 17 00:00:00 2001 From: Bernard Xiong Date: Fri, 5 Jul 2013 19:36:57 -0400 Subject: fix the spelling wrong --- include/rtdef.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include') diff --git a/include/rtdef.h b/include/rtdef.h index 83a6398b93..975624582e 100644 --- a/include/rtdef.h +++ b/include/rtdef.h @@ -178,7 +178,7 @@ typedef rt_base_t rt_off_t; /**< Type for offset */ /* initialization export */ #ifdef RT_USING_COMPONENTS_INIT typedef int (*init_fn_t)(void); -#ifdef _MSC_VER_ /* we do not support MS VC++ compiler */ +#ifdef _MSC_VER /* we do not support MS VC++ compiler */ #define INIT_EXPORT(fn, level) #else #define INIT_EXPORT(fn, level) \ -- cgit v1.3.1