summaryrefslogtreecommitdiff
path: root/data/_apt7/deprecated.diff
diff options
context:
space:
mode:
authorSam Bingner <sam@bingner.com>2018-12-12 12:22:43 -1000
committerSam Bingner <sam@bingner.com>2018-12-12 12:22:43 -1000
commit8392357d8d02c96c1a0b6933c0748e47c29e7e30 (patch)
tree768c720bd5ea29f74ef8d24ec04906615d9ab487 /data/_apt7/deprecated.diff
parent9a4df01578b80a11383cc2376e38104c7c7644f6 (diff)
parent289fb68d04f3511395da101a87a87eb176ef36d4 (diff)
Merge testing to master
Diffstat (limited to 'data/_apt7/deprecated.diff')
-rw-r--r--data/_apt7/deprecated.diff13
1 files changed, 13 insertions, 0 deletions
diff --git a/data/_apt7/deprecated.diff b/data/_apt7/deprecated.diff
new file mode 100644
index 000000000..737aed6f9
--- /dev/null
+++ b/data/_apt7/deprecated.diff
@@ -0,0 +1,13 @@
+diff -ru apt-0.7.25.3/apt-pkg/contrib/macros.h apt-0.7.25.3+iPhone/apt-pkg/contrib/macros.h
+--- apt-0.7.25.3/apt-pkg/contrib/macros.h 2010-02-22 18:11:17.000000000 +0000
++++ apt-0.7.25.3+iPhone/apt-pkg/contrib/macros.h 2010-02-01 19:44:40.000000000 +0000
+@@ -57,7 +57,9 @@
+ // some nice optional GNUC features
+ #if __GNUC__ >= 3
+ #define __must_check __attribute__ ((warn_unused_result))
++#ifndef __deprecated
+ #define __deprecated __attribute__ ((deprecated))
++#endif
+ /* likely() and unlikely() can be used to mark boolean expressions
+ as (not) likely true which will help the compiler to optimise */
+ #define likely(x) __builtin_expect (!!(x), 1)