From: Panu Matilainen Date: Tue, 8 Jul 2008 13:45:44 +0000 (+0300) Subject: Add deprecation warnings to all legacy types X-Git-Tag: tznext/4.11.0.1.tizen20130304~3705 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=425d43a8a056685432c9f80b12b1ec8920950408;p=tools%2Flibrpm-tizen.git Add deprecation warnings to all legacy types --- diff --git a/lib/rpmlegacy.h b/lib/rpmlegacy.h index 55fa42a..ea201a0 100644 --- a/lib/rpmlegacy.h +++ b/lib/rpmlegacy.h @@ -15,19 +15,19 @@ extern "C" { #ifdef _RPM_4_4_COMPAT /* mappings for legacy types */ -typedef int32_t int_32; -typedef int16_t int_16; -typedef int8_t int_8; -typedef uint32_t uint_32; -typedef uint16_t uint_16; -typedef uint8_t uint_8; - -typedef rpmTag * hTAG_t; -typedef rpmTagType * hTYP_t; -typedef const void * hPTR_t; -typedef rpm_count_t * hCNT_t; - -typedef rpmSpec Spec; +typedef int32_t int_32 RPM_GNUC_DEPRECATED; +typedef int16_t int_16 RPM_GNUC_DEPRECATED; +typedef int8_t int_8 RPM_GNUC_DEPRECATED; +typedef uint32_t uint_32 RPM_GNUC_DEPRECATED; +typedef uint16_t uint_16 RPM_GNUC_DEPRECATED; +typedef uint8_t uint_8 RPM_GNUC_DEPRECATED; + +typedef rpmTag * hTAG_t RPM_GNUC_DEPRECATED; +typedef rpmTagType * hTYP_t RPM_GNUC_DEPRECATED; +typedef const void * hPTR_t RPM_GNUC_DEPRECATED; +typedef rpm_count_t * hCNT_t RPM_GNUC_DEPRECATED; + +typedef rpmSpec Spec RPM_GNUC_DEPRECATED; /* legacy header interfaces */