From 4b9870244a529bf086280331d38c55e294425b4f Mon Sep 17 00:00:00 2001 From: Nick Fisher Date: Tue, 1 Jul 2025 13:16:07 +0800 Subject: [PATCH] fix material headers for web --- thermion_dart/native/include/material/grid.h | 4 ++++ thermion_dart/native/include/material/linear_depth.h | 4 ++++ thermion_dart/native/include/material/outline.h | 4 ++++ 3 files changed, 12 insertions(+) diff --git a/thermion_dart/native/include/material/grid.h b/thermion_dart/native/include/material/grid.h index 58dbdbd3..77277fea 100644 --- a/thermion_dart/native/include/material/grid.h +++ b/thermion_dart/native/include/material/grid.h @@ -3,11 +3,15 @@ #include +#ifdef __cplusplus extern "C" { +#endif extern const uint8_t GRID_PACKAGE[]; extern int GRID_GRID_OFFSET; extern int GRID_GRID_SIZE; +#ifdef __cplusplus } +#endif #define GRID_GRID_DATA (GRID_PACKAGE + GRID_GRID_OFFSET) #endif diff --git a/thermion_dart/native/include/material/linear_depth.h b/thermion_dart/native/include/material/linear_depth.h index 6b9c1893..93da2ede 100644 --- a/thermion_dart/native/include/material/linear_depth.h +++ b/thermion_dart/native/include/material/linear_depth.h @@ -3,11 +3,15 @@ #include +#ifdef __cplusplus extern "C" { +#endif extern const uint8_t LINEAR_DEPTH_PACKAGE[]; extern int LINEAR_DEPTH_LINEAR_DEPTH_OFFSET; extern int LINEAR_DEPTH_LINEAR_DEPTH_SIZE; +#ifdef __cplusplus } +#endif #define LINEAR_DEPTH_LINEAR_DEPTH_DATA (LINEAR_DEPTH_PACKAGE + LINEAR_DEPTH_LINEAR_DEPTH_OFFSET) #endif diff --git a/thermion_dart/native/include/material/outline.h b/thermion_dart/native/include/material/outline.h index 0b9cc973..01de0db6 100644 --- a/thermion_dart/native/include/material/outline.h +++ b/thermion_dart/native/include/material/outline.h @@ -3,11 +3,15 @@ #include +#ifdef __cplusplus extern "C" { +#endif extern const uint8_t OUTLINE_PACKAGE[]; extern int OUTLINE_OUTLINE_OFFSET; extern int OUTLINE_OUTLINE_SIZE; +#ifdef __cplusplus } +#endif #define OUTLINE_OUTLINE_DATA (OUTLINE_PACKAGE + OUTLINE_OUTLINE_OFFSET) #endif