summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
author[email protected] <[email protected]>2010-09-27 23:30:22 +0000
committer[email protected] <[email protected]>2010-09-27 23:30:22 +0000
commit7498af2fd0d87f25b96a956fdda4089629fddc67 (patch)
tree3c91efaf287c2eba608cccf0d5fd7fbcacc95441 /examples
parent98dc2877a58056635e529270ab130c1e1881050f (diff)
add RT_USING_MODULE macro condition.
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@970 bbd45198-f89e-11dd-88c7-29a3b14d5316
Diffstat (limited to 'examples')
-rw-r--r--examples/gui/demo_view_module.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/examples/gui/demo_view_module.c b/examples/gui/demo_view_module.c
index 69e62acce5..0ea3184226 100644
--- a/examples/gui/demo_view_module.c
+++ b/examples/gui/demo_view_module.c
@@ -9,6 +9,7 @@
#include <rtgui/widgets/filelist_view.h>
#include <string.h>
+#ifdef RT_USING_MODULE
static rt_module_t module = RT_NULL;
static rtgui_view_t* _view = RT_NULL;
@@ -81,3 +82,4 @@ rtgui_view_t* demo_view_module(rtgui_workbench_t* workbench)
return _view;
}
+#endif