Hi Elias,
thanks. I made some changes rot readline to be more portable.
Including the Function problem.
It is really not nice to typedef a fundamental name like Function in a
library
because you can't un-typedef it (can you?). In my readline version you could
prevent that by
You can't undef a typedef, but you can hack around it by #define Function
Something_Else, and then #undef Function after including the offending
header.
That said, the C++ solution is to place your own definitions into a unique
namespace.
Regards,
Elias
On 24 July 2014 18:17, Juergen Sauermann