From: Sunggyu Choi Date: Mon, 7 Oct 2019 01:53:05 +0000 (+0900) Subject: Add attribute for thread local variable X-Git-Tag: submit/tizen/20191007.023644^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ffa113832906e9a5718f971aa3f1a4982ed638b5;p=platform%2Fcore%2Fapi%2Fcommon.git Add attribute for thread local variable Change-Id: I410f37e9ad8dfe7c731523d36ea5dc8ff602d151 Signed-off-by: Sunggyu Choi --- diff --git a/packaging/capi-base-common.spec b/packaging/capi-base-common.spec index 7de3924..64098da 100644 --- a/packaging/capi-base-common.spec +++ b/packaging/capi-base-common.spec @@ -1,6 +1,6 @@ Name: capi-base-common Summary: Common header files of Tizen Native API -Version: 0.4.52 +Version: 0.4.53 Release: 1 Group: Base License: Apache-2.0 diff --git a/src/tizen_error.c b/src/tizen_error.c index 03de2a9..9220295 100644 --- a/src/tizen_error.c +++ b/src/tizen_error.c @@ -22,7 +22,8 @@ /* END of Tizen Platoform Error */ #define TIZEN_ERROR_MIN_PLATFORM_MODULE -0x0FFFFFFF - +// Added by the request of AppFW part (Details: https://reviews.llvm.org/D26028) +__attribute__((tls_model("initial-exec"))) static __thread int tizen_last_error = TIZEN_ERROR_NONE; int get_last_result(void)