diff --git a/components/gui/src/image_jpg.c b/components/gui/src/image_jpg.c index c7ba06498d19c3f82d15caa5353d3b591d28b488..66390d1cb52f24caa0e5d38859e7dcdded92bcb0 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 40e9061581a68b92105943532cf379a6d97ceafa..1af8b92b3658311b0d91a6d1b778be8d58813c95 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 5a7b9b4ed0ec0d28a86f4a5c51addb5d4716999f..2f2a5f10c5a4449172ba89082944b347c4159e99 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