Bug#948338: [libapt-pkg-dev] apt-pkg headers pollute preprocessor namespace

2020-01-07 Thread Giovanni Mascellani
Hi, Il 07/01/20 16:18, Julian Andres Klode ha scritto: > I spoke too soon, we can turn the define into > > static struct { > inline GlobalError* operator ->() { return _GetErrorObj(); } > } _error APT_UNUSED; Thanks, I was about to suggest something like that. This still pollutes the glob

Bug#948338: [libapt-pkg-dev] apt-pkg headers pollute preprocessor namespace

2020-01-07 Thread Julian Andres Klode
Control: tag -1 - wontfix On Tue, Jan 07, 2020 at 03:56:08PM +0100, Julian Andres Klode wrote: > Control: clone -1 -2 > Control: reassign -2 aptitude > Control: tag -1 wontfix > > On Tue, Jan 07, 2020 at 03:16:18PM +0100, Giovanni Mascellani wrote: > > Package: libapt-pkg-dev > > Version: 1.8.4 >

Bug#948338: [libapt-pkg-dev] apt-pkg headers pollute preprocessor namespace

2020-01-07 Thread Julian Andres Klode
Control: clone -1 -2 Control: reassign -2 aptitude Control: tag -1 wontfix On Tue, Jan 07, 2020 at 03:16:18PM +0100, Giovanni Mascellani wrote: > Package: libapt-pkg-dev > Version: 1.8.4 > Severity: normal > > Hi, > > apt-pkg headers pollute the preprocessor namespace, causing breakage in > unre

Bug#948338: [libapt-pkg-dev] apt-pkg headers pollute preprocessor namespace

2020-01-07 Thread Giovanni Mascellani
Package: libapt-pkg-dev Version: 1.8.4 Severity: normal Hi, apt-pkg headers pollute the preprocessor namespace, causing breakage in unrelated libraries; for example, /usr/include/apt-pkg/error.h contains the following line: #define _error _GetErrorObj() which is likely to cause errors in any ot