From f7c3d20aa96f586dc44bb3e9b19d227eb0eaef4b Mon Sep 17 00:00:00 2001 From: Nick Fisher Date: Sat, 11 May 2024 22:38:52 +0800 Subject: [PATCH] add guards for material headers --- dart_filament/native/include/material/gizmo.h | 4 ++++ dart_filament/native/include/material/image.h | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/dart_filament/native/include/material/gizmo.h b/dart_filament/native/include/material/gizmo.h index b598dac5..fd62c71d 100644 --- a/dart_filament/native/include/material/gizmo.h +++ b/dart_filament/native/include/material/gizmo.h @@ -3,12 +3,16 @@ #include +#if defined(__cplusplus) extern "C" { +#endif extern const uint8_t GIZMO_PACKAGE[]; extern int GIZMO_GIZMO_OFFSET; extern int GIZMO_GIZMO_SIZE; +#if defined(__cplusplus) } +#endif #define GIZMO_GIZMO_DATA (GIZMO_PACKAGE + GIZMO_GIZMO_OFFSET) #endif diff --git a/dart_filament/native/include/material/image.h b/dart_filament/native/include/material/image.h index 6c233bc7..4761bfae 100644 --- a/dart_filament/native/include/material/image.h +++ b/dart_filament/native/include/material/image.h @@ -3,12 +3,16 @@ #include +#if defined(__cplusplus) extern "C" { +#endif extern const uint8_t IMAGE_PACKAGE[]; extern int IMAGE_IMAGE_OFFSET; extern int IMAGE_IMAGE_SIZE; +#if defined(__cplusplus) } +#endif #define IMAGE_IMAGE_DATA (IMAGE_PACKAGE + IMAGE_IMAGE_OFFSET) #endif