diff options
| author | Bernard Xiong <[email protected]> | 2013-02-26 17:44:33 -0800 |
|---|---|---|
| committer | Bernard Xiong <[email protected]> | 2013-02-26 17:44:33 -0800 |
| commit | 76bdeb3ec3b0ffee21c85b1a50d023a0da50041e (patch) | |
| tree | 53fb128a24234b554ef3a3766531b87deaf922b4 /include | |
| parent | caf18dabdfa4e500d570ed4cb2d14d332eb880ab (diff) | |
| parent | 188dfea3a75dede5f8a5cab0d62fe130eaced932 (diff) | |
Merge pull request #39 from prife/sim-module
simulator: mingw and app module support
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 |
