diff options
| author | bernard.xiong <[email protected]> | 2010-07-30 09:47:56 +0000 |
|---|---|---|
| committer | bernard.xiong <[email protected]> | 2010-07-30 09:47:56 +0000 |
| commit | 445da145e267d3998965f2edccda04c2c08e0a66 (patch) | |
| tree | 78c6527df54352c816649700ac99da7731c7668d /components/rtgui/common | |
| parent | b9fcbfc34489856a06554c0a3c453ad60e20cecd (diff) | |
fix compiling error if there is no DFS file system.
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@818 bbd45198-f89e-11dd-88c7-29a3b14d5316
Diffstat (limited to 'components/rtgui/common')
| -rw-r--r-- | components/rtgui/common/image.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/components/rtgui/common/image.c b/components/rtgui/common/image.c index 85fc6485f9..7393856300 100644 --- a/components/rtgui/common/image.c +++ b/components/rtgui/common/image.c @@ -68,6 +68,7 @@ static struct rtgui_image_engine* rtgui_image_get_engine(const char* type) return RT_NULL; } +#if defined(RTGUI_USING_DFS_FILERW) || defined(RTGUI_USING_STDIO_FILERW) struct rtgui_image* rtgui_image_create_from_file(const char* type, const char* filename, rt_bool_t load) { struct rtgui_filerw* filerw; @@ -114,6 +115,7 @@ struct rtgui_image* rtgui_image_create_from_file(const char* type, const char* f return image; } +#endif struct rtgui_image* rtgui_image_create_from_mem(const char* type, const rt_uint8_t* data, rt_size_t length, rt_bool_t load) { |
