Add attribute for thread local variable 03/215303/1 accepted/tizen/unified/20191008.101615 submit/tizen/20191007.023644
authorSunggyu Choi <sunggyu.choi@samsung.com>
Mon, 7 Oct 2019 01:53:05 +0000 (10:53 +0900)
committerSunggyu Choi <sunggyu.choi@samsung.com>
Mon, 7 Oct 2019 01:53:05 +0000 (10:53 +0900)
Change-Id: I410f37e9ad8dfe7c731523d36ea5dc8ff602d151
Signed-off-by: Sunggyu Choi <sunggyu.choi@samsung.com>
packaging/capi-base-common.spec
src/tizen_error.c

index 7de3924..64098da 100644 (file)
@@ -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
index 03de2a9..9220295 100644 (file)
@@ -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)