Add deprecation warnings to all legacy types
authorPanu Matilainen <pmatilai@redhat.com>
Tue, 8 Jul 2008 13:45:44 +0000 (16:45 +0300)
committerPanu Matilainen <pmatilai@redhat.com>
Tue, 8 Jul 2008 15:54:29 +0000 (18:54 +0300)
lib/rpmlegacy.h

index 55fa42a..ea201a0 100644 (file)
@@ -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 */