From 51da6127d0073c9fc81f4b220f2360bd612ded5c Mon Sep 17 00:00:00 2001 From: Julian Andres Klode Date: Wed, 12 Jul 2017 14:07:27 +0200 Subject: cacheiterators: Warn about direct include and don't include pkgcache.h This adds a warning so existing working code will still work (as it includes pkgcache.h first anyway), but it will know that it's not right to include this file directly. --- apt-pkg/pkgcache.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'apt-pkg/pkgcache.h') diff --git a/apt-pkg/pkgcache.h b/apt-pkg/pkgcache.h index acf6cf446..e1597c1b1 100644 --- a/apt-pkg/pkgcache.h +++ b/apt-pkg/pkgcache.h @@ -73,7 +73,7 @@ /*}}}*/ #ifndef PKGLIB_PKGCACHE_H #define PKGLIB_PKGCACHE_H - +#define __PKGLIB_IN_PKGCACHE_H #include #include @@ -825,4 +825,5 @@ class pkgCache::Namespace /*{{{*/ typedef pkgCache::Flag Flag; }; /*}}}*/ +#undef __PKGLIB_IN_PKGCACHE_H #endif -- cgit v1.2.3