Alex Guryanow <gav@nlr.ru> writes:
> What should I do to be able to compile my function using g++?
I think you should forget about it and use gcc :-(
> Should I make changes in c.h to define bool as int and then rebuild
> backend? Or this is a bad idea?
Very bad. bool has to be 1 byte, unless you care to indulge in
delicate surgery on a bunch of system catalogs.
regards, tom lane