From 914a43925b4bcf1fc967ea9ab1699ad98920cf94 Mon Sep 17 00:00:00 2001 From: tangyuxin <462747508@qq.com> Date: Mon, 6 Nov 2017 17:24:54 +0800 Subject: [PATCH] =?UTF-8?q?[gui]=E5=8C=85=E5=90=AB"image.h"=E6=96=87?= =?UTF-8?q?=E4=BB=B6,=E8=A7=A3=E5=86=B3=E6=9C=AA=E5=AE=9A=E4=B9=89"struct?= =?UTF-8?q?=20rtgui=5Fimage=5Fengine"=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/gui/src/image_jpg.c | 1 + components/gui/src/image_png.c | 4 ++-- components/gui/src/image_xpm.c | 1 + 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/components/gui/src/image_jpg.c b/components/gui/src/image_jpg.c index c7ba06498d..66390d1cb5 100644 --- a/components/gui/src/image_jpg.c +++ b/components/gui/src/image_jpg.c @@ -24,6 +24,7 @@ */ #include #include +#include #ifdef RTGUI_IMAGE_JPEG #include diff --git a/components/gui/src/image_png.c b/components/gui/src/image_png.c index 40e9061581..1af8b92b36 100644 --- a/components/gui/src/image_png.c +++ b/components/gui/src/image_png.c @@ -22,10 +22,11 @@ * 2010-09-15 Bernard first version */ - #include +#include #include #include #include +#include #ifdef RTGUI_IMAGE_PNG #include "png.h" @@ -424,7 +425,6 @@ void rtgui_image_png_init() #elif defined(RTGUI_IMAGE_LODEPNG) #include "lodepng.h" -#include static rt_bool_t rtgui_image_png_check(struct rtgui_filerw *file); static rt_bool_t rtgui_image_png_load(struct rtgui_image *image, struct rtgui_filerw *file, rt_bool_t load); diff --git a/components/gui/src/image_xpm.c b/components/gui/src/image_xpm.c index 5a7b9b4ed0..2f2a5f10c5 100644 --- a/components/gui/src/image_xpm.c +++ b/components/gui/src/image_xpm.c @@ -26,6 +26,7 @@ #include #include +#include #ifdef RTGUI_IMAGE_XPM #define XPM_MAGIC_LEN 9 -- GitLab