From 425d43a8a056685432c9f80b12b1ec8920950408 Mon Sep 17 00:00:00 2001 From: Panu Matilainen Date: Tue, 8 Jul 2008 16:45:44 +0300 Subject: [PATCH] Add deprecation warnings to all legacy types --- lib/rpmlegacy.h | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) 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 */ -- 2.7.4