From 2c64064ac46345c3ea82babbab1f7b1f37597816 Mon Sep 17 00:00:00 2001 From: ByungWoo Lee Date: Fri, 12 Aug 2016 13:41:25 +0900 Subject: [PATCH] Add TIZEN_DEPRECATED_API and TIZEN_DEPRECATED_TYPE macro Change-Id: I1e164d0b4b0a9f64865679a8cd0deafbd0496d49 --- include/tizen.h | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) 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 -- 2.7.4