fix warning issue.
[platform/core/connectivity/smartcard-service.git] / client / ClientGDBus.cpp
old mode 100644 (file)
new mode 100755 (executable)
index 5e755dd..8a3bb8b
 
 using namespace std;
 
+/* below functions will be called when dlopen or dlclose is called */
+void __attribute__ ((constructor)) lib_init()
+{
+       /* remove for deprecated-declarations build warning: glib ver > 2.36 */
+#if !GLIB_CHECK_VERSION (2, 35, 0)
+       g_type_init();
+#endif
+}
+
+void __attribute__ ((destructor)) lib_fini()
+{
+}
+
 namespace smartcard_service_api
 {
 } /* namespace smartcard_service_api */