delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2003/12/04/05:26:02

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
X-Originating-IP: [69.3.191.154]
X-Originating-Email: [rkitover AT hotmail DOT com]
X-Sender: rkitover AT hotmail DOT com
From: "Rafael Kitover" <rkitover AT hotmail DOT com>
To: "'Cygwin List'" <cygwin AT cygwin DOT com>
Subject: postgresql /usr/include/sqltypes.h conflicts with /usr/include/w32api/sqltypes.h (was RE: <w32api/sql.h> broken?)
Date: Thu, 4 Dec 2003 02:25:38 -0800
MIME-Version: 1.0
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
Message-ID: <Law9-OE572C3JCRFTLj00002753@hotmail.com>
X-OriginalArrivalTime: 04 Dec 2003 10:25:42.0669 (UTC) FILETIME=[F88DABD0:01C3BA50]

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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019