Thread: conflict types mysql and PostgreSQL

conflict types mysql and PostgreSQL

From
Pavel Stehule
Date:
Hello,

I started work on "light" version dblink for mysql. I have problems: I
can't use header files mysql and postgresql together.

/usr/local/include/mysql/my_list.h:32: error: conflicting types for
`list_delete'
/usr/local/pgsql/include/server/nodes/pg_list.h:210: error: previous
declaration of `list_delete'
/usr/local/include/mysql/my_list.h:35: error: conflicting types for
`list_free'
/usr/local/pgsql/include/server/nodes/pg_list.h:227: error: previous
declaration of `list_free'
/usr/local/include/mysql/my_list.h:36: error: conflicting types for
`list_length'
/usr/local/pgsql/include/server/nodes/pg_list.h:93: error: previous
declaration of `list_length'

I know only one solution. Use small library, and comunicate with mysql via
this library. Do You know better solution?

Thank You
Pavel Stehule