aalogparse.h cannot be included from C++ code
Bug #2004592 reported by
Steve Langasek
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
apparmor (Ubuntu) |
New
|
Wishlist
|
Unassigned |
Bug Description
aalogparse.h cannot be included from C++ code because it uses 'namespace' and 'class' as variable names, and these are reserved keywords in C++.
/usr/include/
137 | char *namespace;
| ^~~~~~~~~
/usr/include/
163 | char *class;
| ^~~~~
This is interesting to me because abi-compliance-
To post a comment you must log in.
Sigh, so this one is a bit of a pita. Minimal C code uses this and it is easy to update that. The problem comes with the SWIG interface libraries (python, ruby, etc) have baked these names into their API. We can update those but then we stand a good chance of breaking some external code.
Admittedly I don't know SWIG well, but I am looking into what can be done.