This is the mail archive of the
cygwin@cygwin.com
mailing list for the Cygwin project.
postgresql /usr/include/sqltypes.h conflicts with /usr/include/w32api/sqltypes.h (was RE: <w32api/sql.h> broken?)
- From: "Rafael Kitover" <rkitover at hotmail dot com>
- To: "'Cygwin List'" <cygwin at cygwin dot com>
- Date: Thu, 4 Dec 2003 02:25:38 -0800
- Subject: postgresql /usr/include/sqltypes.h conflicts with /usr/include/w32api/sqltypes.h (was RE: <w32api/sql.h> broken?)
Looks like /usr/include/w32api/sql.h does an #include <sqltypes.h>,
which if you have postgresql installed, will read postgres's version
when building under cygwin.
Any chance the postgres /usr/include/sqltypes.h could be moved to
/usr/include/postgresql/sqltypes.h or something along those lines?
In any case, the workaround is:
#include <windows.h>
#ifndef ODBCVER
# define ODBCVER 0x0351
#endif
#include <w32api/sqltypes.h>
#include <sql.h>
--
Rafael
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/