This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]