From: ByungWoo Lee Date: Fri, 12 Aug 2016 04:41:25 +0000 (+0900) Subject: Add TIZEN_DEPRECATED_API and TIZEN_DEPRECATED_TYPE macro X-Git-Tag: submit/tizen/20160816.040704~6^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=2c64064ac46345c3ea82babbab1f7b1f37597816;p=platform%2Fcore%2Fapi%2Fcommon.git Add TIZEN_DEPRECATED_API and TIZEN_DEPRECATED_TYPE macro Change-Id: I1e164d0b4b0a9f64865679a8cd0deafbd0496d49 --- diff --git a/include/tizen.h b/include/tizen.h index 84a8cbc..f0ed889 100755 --- a/include/tizen.h +++ b/include/tizen.h @@ -23,12 +23,20 @@ #define EXPORT_API __attribute__((__visibility__("default"))) #endif -#ifndef DEPRECATED_API -#define DEPRECATED_API __attribute__((__visibility__("default"), deprecated)) +#ifndef TIZEN_DEPRECATED_API +# ifdef ENABLE_TIZEN_DEPRECATED +# define TIZEN_DEPRECATED_API __attribute__((__visibility__("default"), deprecated)) +# else +# define TIZEN_DEPRECATED_API +# endif #endif -#ifndef DEPRECATED_TYPE -#define DEPRECATED_TYPE __attribute__((deprecated)) +#ifndef TIZEN_DEPRECATED_TYPE +# ifdef ENABLE_TIZEN_DEPRECATED +# define TIZEN_DEPRECATED_TYPE __attribute__((deprecated)) +# else +# define TIZEN_DEPRECATED_TYPE +# endif #endif #endif // __TIZEN_H__ \ No newline at end of file