Macro/enum clash for kpty.h and kprinter.h headers
Richard Dale
richard_dale at tipitina.demon.co.uk
Tue Jun 19 17:48:31 BST 2007
I'm having trouble with some source code where there is an include
for 'kpty.h' after an include for 'kprinter.h'. Then the following code tries
to use the enum PageSize::B0 from kprinter.h and it doesn't compile because
the 'B0' has been defined as a macro via the kpty.h include.
So should there be an '#if defined(B0) #undef B0' in kpty.h after the
termios.h include to prevent these two kde headers from interfering with each
other unpredictably?
-- Richard
More information about the kde-core-devel
mailing list