Blob Blame History Raw
From 61ed0988a8e66e8e76b3a6cd050b3992318f8043 Mon Sep 17 00:00:00 2001
From: Robin Lee <cheeselee@fedoraproject.org>
Date: Thu, 20 Feb 2020 14:15:27 +0800
Subject: [PATCH] Fix multiple definition errors

---
 gcin-common.cpp | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/gcin-common.cpp b/gcin-common.cpp
index 2595c98..3fcf0e8 100644
--- a/gcin-common.cpp
+++ b/gcin-common.cpp
@@ -5,9 +5,8 @@
 void flush_tsin_buffer();
 #endif
 extern gboolean test_mode;
-PIN_JUYIN *pin_juyin;
 
-int text_pho_N=3;
+extern int text_pho_N;
 
 gboolean b_use_full_space = TRUE;
 
@@ -62,6 +61,9 @@ void disp_pho_sub(GtkWidget *label, int index, char *pho)
   if (!label)
     return;
 
+  if (text_pho_N == 0)
+      text_pho_N = 3;
+
   if (index>=text_pho_N)
     return;
 
-- 
2.21.1