ecore_evas: only define these eina errors once
authorMarcel Hollerbach <mail@marcel-hollerbach.de>
Thu, 30 Apr 2020 13:22:01 +0000 (09:22 -0400)
committerJongmin Lee <jm105.lee@samsung.com>
Wed, 6 May 2020 01:24:00 +0000 (10:24 +0900)
Summary:
they are not needed multiple times, infact this is creating multiple
definition errors.

@fix

Reviewers: stefan_schmidt, zmike

Reviewed By: zmike

Subscribers: cedric, #reviewers, #committers

Tags: #efl

Differential Revision: https://phab.enlightenment.org/D11766

src/lib/ecore_evas/ecore_evas.c
src/lib/ecore_evas/ecore_evas_private.h

index d58ceb9..42766b4 100644 (file)
        goto _label; \
     }
 
+EAPI Eina_Error ecore_evas_no_matching_type;
+EAPI Eina_Error ecore_evas_no_selection;
+EAPI Eina_Error ecore_evas_request_replaced;
+
 EAPI Eina_Bool _ecore_evas_app_comp_sync = EINA_FALSE;
 EAPI int _ecore_evas_log_dom = -1;
 static int _ecore_evas_init_count = 0;
index d6dd6a1..9e447a8 100644 (file)
@@ -33,9 +33,9 @@
 
 EAPI extern int _ecore_evas_log_dom;
 
-EAPI Eina_Error ecore_evas_no_matching_type;
-EAPI Eina_Error ecore_evas_no_selection;
-EAPI Eina_Error ecore_evas_request_replaced;
+EAPI extern Eina_Error ecore_evas_no_matching_type;
+EAPI extern Eina_Error ecore_evas_no_selection;
+EAPI extern Eina_Error ecore_evas_request_replaced;
 
 #ifdef ECORE_EVAS_DEFAULT_LOG_COLOR
 # undef ECORE_EVAS_DEFAULT_LOG_COLOR