http://bugzilla.novell.com/show_bug.cgi?id=966257
http://bugzilla.novell.com/show_bug.cgi?id=966257#c3
Richard Biener changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |kernel-maintainers@forge.pr
| |ovo.novell.com
--- Comment #3 from Richard Biener ---
(In reply to Arvin Schnell from comment #2)
Only two include files already cause an error:
#include
#include <string>
Well, you can't blame the kernel (C code) for #defining min/max. If you need
to include C headers be prepared to #undef its macros.
Thus,
#include
#ifdef min
#undef min
#endif
#ifdef max
#undef max
#endif
#include <string>
or include btrfs/kerncompat.h last (why do you need it at all...)
Kernel headers could of course also refrain from #defining min/max
(at least with __cplusplus being defined).
Still a snapper bug IMHO.
--
You are receiving this mail because:
You are on the CC list for the bug.