conflict types mysql and PostgreSQL - Mailing list pgsql-general

From Pavel Stehule
Subject conflict types mysql and PostgreSQL
Date
Msg-id Pine.LNX.4.44.0501311504530.15722-100000@kix.fsv.cvut.cz
Whole thread Raw
List pgsql-general
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


pgsql-general by date:

Previous
From: "Frank D. Engel, Jr."
Date:
Subject: Re: Export a column in a view without "announcing" it?
Next
From: Marian POPESCU
Date:
Subject: "Invalid multibyte character for locale" still there