summaryrefslogtreecommitdiff
path: root/apt-pkg/contrib/system.h
diff options
context:
space:
mode:
authorMichael Vogt <michael.vogt@ubuntu.com>2010-01-31 07:28:06 -0800
committerMichael Vogt <michael.vogt@ubuntu.com>2010-01-31 07:28:06 -0800
commit2893f7b5ec6b2220ccfca6b9648482a6df926eca (patch)
tree420bcfd02120ee9398aee82a50ce297bd33a5e76 /apt-pkg/contrib/system.h
parent4a3b5e9d609ad7c5437fa34c20f8404d07f8d11b (diff)
* cmdline/acqprogress.cc:
- Set Mode to Medium so that the correct prefix is used. Thanks Stefan Haller for the patch! (Closes: #567304 LP: #275243) * ftparchive/writer.cc: - generate sha1 and sha256 checksums for dsc (Closes: #567343) * cmdline/apt-get.cc: - don't mark as manually if in download only (Closes: #468180)
Diffstat (limited to 'apt-pkg/contrib/system.h')
-rw-r--r--apt-pkg/contrib/system.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/apt-pkg/contrib/system.h b/apt-pkg/contrib/system.h
index b57093b93..a0580b218 100644
--- a/apt-pkg/contrib/system.h
+++ b/apt-pkg/contrib/system.h
@@ -77,4 +77,13 @@
#define __cold /* no cold marker */
#endif
+#ifdef __GNUG__
+// Methods have a hidden this parameter that is visible to this attribute
+ #define __like_printf_1 __attribute__ ((format (printf, 2, 3)))
+ #define __like_printf_2 __attribute__ ((format (printf, 3, 4)))
+#else
+ #define __like_printf_1
+ #define __like_printf_2
+#endif
+
#endif