Skip to Content.
Sympa Menu

freetds - Re: [freetds] freetds in win32

freetds AT lists.ibiblio.org

Subject: FreeTDS Development Group

List archive

Chronological Thread  
  • From: Steve Langasek <vorlon AT netexpress.net>
  • To: freetds AT lists.ibiblio.org
  • Subject: Re: [freetds] freetds in win32
  • Date: Fri, 7 Feb 2003 16:19:19 -0600

On Fri, Feb 07, 2003 at 03:22:32PM -0500, Lowden, James K wrote:
> > From: Frediano Ziglio [mailto:freddyz77 AT tin.it]
> > Sent: February 6, 2003 3:12 PM

> > > 4) SQLULEN is not defined on WIn32. This will take a small
> > code change

> > All fixed in CVS (BRANCH0_61 and MAIN).

> I have unixodbc-2.0.11, and #4 is not fixed for me. What's the right fix?
> I don't know under what circumstances we should define SQLULEN.

> The message:

> gcc -DHAVE_CONFIG_H -I. -I../../../src/odbc -I../../include
> -I../../../include -I/usr/pkg/include -D_FREETDS_LIBRARY_SOURCE
> -I/usr/pkg/include -DTDS50 -DUNIXODBC -Wall -Wstrict-prototypes -Wmissing-
> prototypes -g -O2 -c
> /usr/home/jklowden/projects/freetds/build/src/odbc/../../../src/odbc/odbc.c
> -Wp,-MD,.deps/odbc.TPlo -fPIC -DPIC -o .libs/odbc.o
> /usr/home/jklowden/projects/freetds/build/src/odbc/../../../src/odbc/odbc.c:
> In function `SQLSetEnvAttr':
> /usr/home/jklowden/projects/freetds/build/src/odbc/../../../src/odbc/odbc.c:
> 397: `SQLULEN' undeclared (first use in this function)

Ok, apparently this isn't as portable as I thought it was. If new
versions of unixodbc are the only place this type appears, perhaps a
portable fix would be

#ifndef SQLULEN
#define SQLULEN SQLUINTEGER
#endif

?

--
Steve Langasek
postmodern programmer

Attachment: pgpp7i3e9WQ6J.pgp
Description: PGP signature




Archive powered by MHonArc 2.6.24.

Top of Page