diff options
| author | prife <[email protected]> | 2013-02-27 00:37:57 +0800 |
|---|---|---|
| committer | prife <[email protected]> | 2013-02-27 00:37:57 +0800 |
| commit | a64ec10e68cbc17db2aaf736205cda2ada45ac65 (patch) | |
| tree | 161c30f2da7bd289b104a86d5393a3263817c3eb /include | |
| parent | 242574a36ff05d6d109c09144b6f7fab8c88c407 (diff) | |
app module support for simlator, first version
Diffstat (limited to 'include')
| -rw-r--r-- | include/rtm.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/rtm.h b/include/rtm.h index 92ba6a381a..4bf7951a90 100644 --- a/include/rtm.h +++ b/include/rtm.h @@ -21,6 +21,9 @@ struct rt_module_symtab const char *name; }; +#if defined(_MSC_VER) || defined(__MINGW32__) +#define RTM_EXPORT(symbol) +#else #define RTM_EXPORT(symbol) \ const char __rtmsym_##symbol##_name[] = #symbol; \ const struct rt_module_symtab __rtmsym_##symbol SECTION("RTMSymTab")= \ @@ -28,6 +31,8 @@ const struct rt_module_symtab __rtmsym_##symbol SECTION("RTMSymTab")= \ (void *)&symbol, \ __rtmsym_##symbol##_name \ }; +#endif + #else #define RTM_EXPORT(symbol) #endif |
