diff options
| author | Bernard Xiong <[email protected]> | 2013-07-05 19:32:16 -0400 |
|---|---|---|
| committer | Bernard Xiong <[email protected]> | 2013-07-05 19:32:16 -0400 |
| commit | ca56dce2a31944322384cabc074b6f6ce9660e55 (patch) | |
| tree | 7fafb26f01e3f8cbfa54cf52e0e96890f92d2369 /include | |
| parent | b0c1f8a79b272c1ab61be637d1f2a84561c1bbc0 (diff) | |
remove initialization feature for MS VC++ compiler
Diffstat (limited to 'include')
| -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 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 |
