diff options
| author | Bernard Xiong <[email protected]> | 2013-07-09 13:56:51 -0700 |
|---|---|---|
| committer | Bernard Xiong <[email protected]> | 2013-07-09 13:56:51 -0700 |
| commit | 493930ea07246bfe39d12ebcc21f08a28f6a8239 (patch) | |
| tree | d252b6f31e632f7ba3aba0a7e7dbd5bee7f8efa7 /include/rtdef.h | |
| parent | eed81a64192bb98cdffd62e64f730d70568cca48 (diff) | |
| parent | 8c0d4d2ad887017bde508ad0522d19b42c893cac (diff) | |
Merge pull request #118 from BernardXiong/master
Remove initialization feature for MS VC++ compiler.
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 |
