Jason Tishler <Jason.Tishler@dothill.com> writes:
> --- include/sqlca.h 2001/03/22 06:16:20 1.16
> +++ include/sqlca.h 2001/04/20 14:15:01
> @@ -1,6 +1,12 @@
> #ifndef POSTGRES_SQLCA_H
> #define POSTGRES_SQLCA_H
> +#ifdef __CYGWIN__
> +#define DLLIMPORT __declspec (dllimport)
> +#else
> +#define DLLIMPORT
> +#endif /* __CYGWIN__ */
> +
> #define SQLERRMC_LEN 70
This seems rather bad --- why should sqlca.h define this symbol? What
happens if sqlca.h is included in a file that also includes other
Postgres includes, which will probably pull in c.h where the real
definition is? I'd suggest adding
#include "postgres_ext.h"
#include "c.h"
instead, which may be more namespace pollution than we'd like, but
at least it does not create a potential definition conflict.
regards, tom lane