summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorBernard Xiong <[email protected]>2013-07-09 13:56:51 -0700
committerBernard Xiong <[email protected]>2013-07-09 13:56:51 -0700
commit493930ea07246bfe39d12ebcc21f08a28f6a8239 (patch)
treed252b6f31e632f7ba3aba0a7e7dbd5bee7f8efa7 /include
parenteed81a64192bb98cdffd62e64f730d70568cca48 (diff)
parent8c0d4d2ad887017bde508ad0522d19b42c893cac (diff)
Merge pull request #118 from BernardXiong/master
Remove initialization feature for MS VC++ compiler.
Diffstat (limited to 'include')
-rw-r--r--include/rtdef.h8
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