mirror of
https://github.com/lvgl/lvgl.git
synced 2026-05-20 12:32:18 +08:00
refactor(system_includes): replace system includes with LV_XXX_INCLUDE macros (#10089)
This commit is contained in:
@@ -22,7 +22,7 @@
|
||||
#include <stdlib.h>
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
#include <stdarg.h>
|
||||
#include LV_STDARG_INCLUDE
|
||||
#include <errno.h>
|
||||
#include "../../libs/lodepng/lodepng.h"
|
||||
|
||||
|
||||
@@ -19,7 +19,7 @@ extern "C" {
|
||||
#if LV_USE_DRAW_NANOVG
|
||||
|
||||
#include <math.h>
|
||||
#include <stdbool.h>
|
||||
#include LV_STDBOOL_INCLUDE
|
||||
#include <float.h>
|
||||
|
||||
/*********************
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
|
||||
#include "../../draw/lv_draw_private.h"
|
||||
#include "../../core/lv_obj_draw_private.h"
|
||||
#include <stdbool.h>
|
||||
#include LV_STDBOOL_INCLUDE
|
||||
#include "../../core/lv_refr_private.h"
|
||||
#include "../../display/lv_display_private.h"
|
||||
#include "../../core/lv_obj_private.h"
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
#if LV_USE_DRAW_SW_ASM == LV_DRAW_SW_ASM_NEON
|
||||
|
||||
#include "../lv_draw_sw_blend_private.h"
|
||||
#include <stdint.h>
|
||||
#include LV_STDINT_INCLUDE
|
||||
#include <arm_neon.h>
|
||||
|
||||
/*********************
|
||||
|
||||
@@ -28,9 +28,9 @@ extern "C" {
|
||||
#include "../../../../lvgl_public.h"
|
||||
#if LV_USE_DRAW_SW_ASM == LV_DRAW_SW_ASM_RISCV_V
|
||||
|
||||
#include <stdint.h>
|
||||
#include LV_STDINT_INCLUDE
|
||||
#include <string.h>
|
||||
#include <stddef.h>
|
||||
#include LV_STDDEF_INCLUDE
|
||||
|
||||
/* ============================================================================
|
||||
* Vector Type Definitions
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
|
||||
#if LV_USE_DRAW_VG_LITE
|
||||
|
||||
#include <stdint.h>
|
||||
#include LV_STDINT_INCLUDE
|
||||
|
||||
/*********************
|
||||
* DEFINES
|
||||
|
||||
@@ -19,7 +19,7 @@ extern "C" {
|
||||
#if LV_USE_DRAW_VG_LITE
|
||||
|
||||
#include <math.h>
|
||||
#include <stdbool.h>
|
||||
#include LV_STDBOOL_INCLUDE
|
||||
#include <float.h>
|
||||
|
||||
/*********************
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
#include <errno.h>
|
||||
#include <fcntl.h>
|
||||
#include <poll.h>
|
||||
#include <stdint.h>
|
||||
#include LV_STDINT_INCLUDE
|
||||
#include <sys/mman.h>
|
||||
#include <time.h>
|
||||
#include <unistd.h>
|
||||
|
||||
@@ -14,7 +14,7 @@
|
||||
#include <string.h>
|
||||
#include <xf86drmMode.h>
|
||||
#include <stdlib.h>
|
||||
#include <stdint.h>
|
||||
#include LV_STDINT_INCLUDE
|
||||
#include <gbm.h>
|
||||
#include <drm_fourcc.h>
|
||||
#include <xf86drm.h>
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
|
||||
#include <stdlib.h>
|
||||
#include <unistd.h>
|
||||
#include <stddef.h>
|
||||
#include LV_STDDEF_INCLUDE
|
||||
#include <stdio.h>
|
||||
#include <fcntl.h>
|
||||
#include <sys/mman.h>
|
||||
|
||||
@@ -35,7 +35,7 @@
|
||||
#include "r_glcdc_rx_pinset.h"
|
||||
#endif /*_RENESAS_RA_*/
|
||||
|
||||
#include <stdbool.h>
|
||||
#include LV_STDBOOL_INCLUDE
|
||||
#include "../../../display/lv_display_private.h"
|
||||
#include "../../../draw/sw/lv_draw_sw.h"
|
||||
|
||||
|
||||
@@ -19,7 +19,7 @@
|
||||
#include <linux/limits.h>
|
||||
#include <fcntl.h>
|
||||
#include <errno.h>
|
||||
#include <stdbool.h>
|
||||
#include LV_STDBOOL_INCLUDE
|
||||
#include <dirent.h>
|
||||
#include <libinput.h>
|
||||
#include <pthread.h>
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
#if defined(LV_LIBINPUT_XKB) && LV_LIBINPUT_XKB
|
||||
|
||||
#include <errno.h>
|
||||
#include <stdbool.h>
|
||||
#include LV_STDBOOL_INCLUDE
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
|
||||
#include <stdlib.h>
|
||||
#include <unistd.h>
|
||||
#include <stddef.h>
|
||||
#include LV_STDDEF_INCLUDE
|
||||
#include <stdio.h>
|
||||
#include <fcntl.h>
|
||||
#include <errno.h>
|
||||
|
||||
@@ -14,7 +14,7 @@ extern "C" {
|
||||
* INCLUDES
|
||||
*********************/
|
||||
|
||||
#include <stdint.h>
|
||||
#include LV_STDINT_INCLUDE
|
||||
|
||||
/*********************
|
||||
* DEFINES
|
||||
|
||||
@@ -14,7 +14,7 @@ extern "C" {
|
||||
* INCLUDES
|
||||
*********************/
|
||||
|
||||
#include <stdint.h>
|
||||
#include LV_STDINT_INCLUDE
|
||||
|
||||
/*********************
|
||||
* DEFINES
|
||||
|
||||
@@ -14,7 +14,7 @@ extern "C" {
|
||||
* INCLUDES
|
||||
*********************/
|
||||
|
||||
#include <stdint.h>
|
||||
#include LV_STDINT_INCLUDE
|
||||
|
||||
/*********************
|
||||
* DEFINES
|
||||
|
||||
@@ -14,7 +14,7 @@ extern "C" {
|
||||
* INCLUDES
|
||||
*********************/
|
||||
|
||||
#include <stdint.h>
|
||||
#include LV_STDINT_INCLUDE
|
||||
|
||||
/*********************
|
||||
* DEFINES
|
||||
|
||||
@@ -14,7 +14,7 @@ extern "C" {
|
||||
* INCLUDES
|
||||
*********************/
|
||||
|
||||
#include <stdint.h>
|
||||
#include LV_STDINT_INCLUDE
|
||||
|
||||
/*********************
|
||||
* DEFINES
|
||||
|
||||
@@ -14,8 +14,8 @@ extern "C" {
|
||||
* INCLUDES
|
||||
*********************/
|
||||
|
||||
#include <stddef.h>
|
||||
#include <stdbool.h>
|
||||
#include LV_STDDEF_INCLUDE
|
||||
#include LV_STDBOOL_INCLUDE
|
||||
|
||||
/*********************
|
||||
* DEFINES
|
||||
|
||||
@@ -14,8 +14,8 @@ extern "C" {
|
||||
* INCLUDES
|
||||
*********************/
|
||||
|
||||
#include <stdint.h>
|
||||
#include <stddef.h>
|
||||
#include LV_STDINT_INCLUDE
|
||||
#include LV_STDDEF_INCLUDE
|
||||
|
||||
/*********************
|
||||
* DEFINES
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
* INCLUDES
|
||||
*********************/
|
||||
#include "lv_opengles_egl.h"
|
||||
#include <stdint.h>
|
||||
#include LV_STDBOOL_INCLUDE
|
||||
|
||||
#if LV_USE_EGL
|
||||
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
*********************/
|
||||
#include "../../lvgl_public.h"
|
||||
#if LV_USE_QNX
|
||||
#include <stdbool.h>
|
||||
#include LV_STDBOOL_INCLUDE
|
||||
#include "../../core/lv_global.h"
|
||||
#include "../../display/lv_display_private.h"
|
||||
#include <stdlib.h>
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
#include "../../lvgl_public.h"
|
||||
|
||||
#if LV_USE_SDL
|
||||
#include <stdbool.h>
|
||||
#include LV_STDBOOL_INCLUDE
|
||||
#include "../../core/lv_global.h"
|
||||
#include "../../display/lv_display_private.h"
|
||||
|
||||
|
||||
@@ -21,9 +21,9 @@
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#include <stddef.h>
|
||||
#include <stdbool.h>
|
||||
#include <stdint.h>
|
||||
#include LV_STDDEF_INCLUDE
|
||||
#include LV_STDINT_INCLUDE
|
||||
#include LV_STDBOOL_INCLUDE
|
||||
#include <unistd.h>
|
||||
#include <fcntl.h>
|
||||
#include <string.h>
|
||||
|
||||
@@ -16,7 +16,7 @@ extern "C" {
|
||||
|
||||
#if LV_USE_WINDOWS
|
||||
|
||||
#include <stdbool.h>
|
||||
#include LV_STDBOOL_INCLUDE
|
||||
#include <windows.h>
|
||||
|
||||
/*********************
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
|
||||
#if LV_USE_X11
|
||||
|
||||
#include <stdbool.h>
|
||||
#include LV_STDBOOL_INCLUDE
|
||||
#include <unistd.h>
|
||||
#include <stdlib.h>
|
||||
#include <pthread.h>
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
#if LV_USE_X11
|
||||
|
||||
#include <string.h>
|
||||
#include <stdbool.h>
|
||||
#include LV_STDBOOL_INCLUDE
|
||||
#include <X11/Xlib.h>
|
||||
#include <X11/Xutil.h>
|
||||
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
|
||||
#include <windows.h>
|
||||
#include <stdio.h>
|
||||
#include <limits.h>
|
||||
#include LV_LIMITS_INCLUDE
|
||||
|
||||
#include "../../core/lv_global.h"
|
||||
/*********************
|
||||
|
||||
@@ -25,7 +25,7 @@
|
||||
#include "../../lvgl_public.h"
|
||||
|
||||
#if LV_USE_QRCODE
|
||||
#include <limits.h>
|
||||
#include LV_LIMITS_INCLUDE
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
|
||||
|
||||
@@ -14,7 +14,7 @@ extern "C" {
|
||||
#if LV_USE_TJPGD
|
||||
|
||||
#include <string.h>
|
||||
#include <stdint.h>
|
||||
#include LV_STDINT_INCLUDE
|
||||
|
||||
#if JD_FASTDECODE >= 1
|
||||
typedef int16_t jd_yuv_t;
|
||||
|
||||
@@ -31,8 +31,8 @@
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include <stdint.h>
|
||||
#include <stddef.h>
|
||||
#include LV_STDINT_INCLUDE
|
||||
#include LV_STDDEF_INCLUDE
|
||||
#include <math.h>
|
||||
#include "../inc/vg_lite.h"
|
||||
#include "../VGLiteKernel/vg_lite_kernel.h"
|
||||
|
||||
@@ -39,8 +39,8 @@ extern "C" {
|
||||
#include "../../../lvgl_public.h"
|
||||
#if LV_USE_VG_LITE_DRIVER
|
||||
|
||||
#include <stddef.h>
|
||||
#include <stdint.h>
|
||||
#include LV_STDDEF_INCLUDE
|
||||
#include LV_STDINT_INCLUDE
|
||||
|
||||
/* VGLite API Constants *******************************************************************************************************************/
|
||||
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
#include "../VGLiteKernel/vg_lite_hal.h"
|
||||
#include "../VGLiteKernel/vg_lite_hw.h"
|
||||
|
||||
#include <stdarg.h>
|
||||
#include LV_STDARG_INCLUDE
|
||||
|
||||
static void sleep(uint32_t msec)
|
||||
{
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
#include "../../../lvgl_public.h"
|
||||
#if LV_USE_VG_LITE_DRIVER
|
||||
|
||||
#include <stdint.h>
|
||||
#include LV_STDINT_INCLUDE
|
||||
#include <stdlib.h>
|
||||
#include <stdio.h>
|
||||
#include "../VGLiteKernel/vg_lite_debug.h"
|
||||
|
||||
@@ -18,7 +18,7 @@ extern "C" {
|
||||
#include <unistd.h>
|
||||
#include <pthread.h>
|
||||
#include <semaphore.h>
|
||||
#include <stdbool.h>
|
||||
#include LV_STDBOOL_INCLUDE
|
||||
|
||||
/*********************
|
||||
* DEFINES
|
||||
|
||||
@@ -16,7 +16,7 @@ extern "C" {
|
||||
#if LV_USE_OS == LV_OS_RTTHREAD
|
||||
|
||||
#include <rtthread.h>
|
||||
#include <stdbool.h>
|
||||
#include LV_STDBOOL_INCLUDE
|
||||
|
||||
/*********************
|
||||
* DEFINES
|
||||
|
||||
+1
-1
@@ -15,7 +15,7 @@ extern "C" {
|
||||
*********************/
|
||||
#if LV_USE_OS == LV_OS_SDL2
|
||||
#include <SDL2/SDL.h>
|
||||
#include <stdbool.h>
|
||||
#include LV_STDBOOL_INCLUDE
|
||||
|
||||
/*********************
|
||||
* DEFINES
|
||||
|
||||
@@ -17,7 +17,7 @@ extern "C" {
|
||||
#if LV_USE_OS == LV_OS_WINDOWS
|
||||
|
||||
#include <windows.h>
|
||||
#include <stdbool.h>
|
||||
#include LV_STDBOOL_INCLUDE
|
||||
|
||||
/*********************
|
||||
* DEFINES
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
#if LV_USE_STDLIB_SPRINTF == LV_STDLIB_CLIB
|
||||
|
||||
#include <stdio.h>
|
||||
#include <stdarg.h>
|
||||
#include LV_STDARG_INCLUDE
|
||||
|
||||
/*********************
|
||||
* DEFINES
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
#if LV_USE_STDLIB_SPRINTF == LV_STDLIB_RTTHREAD
|
||||
|
||||
#include <rtthread.h>
|
||||
#include <stdarg.h>
|
||||
#include LV_STDARG_INCLUDE
|
||||
|
||||
#if LV_USE_FLOAT == 1
|
||||
#warning "lv_sprintf_rtthread: rtthread not support float in sprintf"
|
||||
|
||||
Reference in New Issue
Block a user