From 2b0424c4ab5ee0ecb0d842e5b81fa8a8a1dda915 Mon Sep 17 00:00:00 2001 From: Liu Date: Sat, 4 Apr 2020 14:14:15 +0800 Subject: [PATCH] fix: wasm-ld: error: duplicate symbol: self --- src/gui/widget/canvas.c | 2 +- src/gui/widget_background.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/gui/widget/canvas.c b/src/gui/widget/canvas.c index 8818f027..f03cd0b6 100644 --- a/src/gui/widget/canvas.c +++ b/src/gui/widget/canvas.c @@ -40,7 +40,7 @@ typedef struct CanvasRec_ { LinkedList contexts; } CanvasRec, *Canvas; -struct { +static struct { LCUI_WidgetPrototype proto; } self; diff --git a/src/gui/widget_background.c b/src/gui/widget_background.c index e1a91c08..9366a35d 100644 --- a/src/gui/widget_background.c +++ b/src/gui/widget_background.c @@ -51,7 +51,7 @@ typedef struct ImageRefRec_ { ImageCache cache; } ImageRefRec, *ImageRef; -struct LCUI_WidgetBackgroundModule { +static struct LCUI_WidgetBackgroundModule { LCUI_BOOL active; DictType dtype; Dict *images;