Re: API public header file on Windows with MS tools

Frediano Ziglio <[email protected]>
Newsgroups gmane.comp.db.tds.freetds
Message-ID <CAHt6W4dg=DGWbGPn-vBwghA7OWB5gxrWv=d2Gp8ONiq9W55HQA@mail.gmail.com>
Could you try replacing this line in sqlfront.h

typedef const LPBYTE         LPCBYTE ;

with

#ifndef _LPCBYTE_DEFINED
#define _LPCBYTE_DEFINED
typedef const LPBYTE         LPCBYTE ;
#endif

Frediano

2011/7/8 James K. Lowden <[email protected]>:
> On Thu, 7 Jul 2011 14:46:55 -0300
> Ramiro Morales <[email protected]> wrote:
>
>> Collective wisdom about the platform and the tools says that kind of
>> problems with the win32 platform SDK headers files can be fixed by
>> modifying the win32/tds_sysdep_public.h file:
>>
>> Index: win32/tds_sysdep_public.h
>> ===================================================================
>> RCS file: /cvsroot/freetds/freetds/win32/tds_sysdep_public.h,v
>> retrieving revision 1.8
>> diff -u -r1.8 tds_sysdep_public.h
>> --- win32/tds_sysdep_public.h   16 Mar 2009 20:46:20 -0000      1.8
>> +++ win32/tds_sysdep_public.h   7 Jul 2011 17:15:51 -0000
>> @@ -28,6 +28,7 @@
>>  {
>>  #endif
>>
>> +#define WIN32_LEAN_AND_MEAN
>
> I'd like to deliberate on this a moment.
>
> I use Nmakefile fairly often, and sought to minimize the number of
> preprocessor definitions.  I used WIN32_LEAN_AND_MEAN with Microsoft's
> versions of sqlfront.h and sqldb.h, but haven't found it necessary with
> FreeTDS.
>
> I'm using VS 2008, too.  I wonder what we're doing differently that
> causes you a problem.
>
> If it turns out to be necessary to define WIN32_LEAN_AND_MEAN, I'd
> prefer it not be in the .h file, but rather in the Nmakefile, as part
> of the DEF macro, alongside all the other goofy arbitrariness.
>
>> Sorry for reporting things apiece like this, I'm slowly finding my
>> way.
>
> As are we all.  No apology necessary.  Your problem reports are a
> contribution from which others will benefit.  Keep 'em coming.
>
> --jkl
>
>
> _______________________________________________
> FreeTDS mailing list
> [email protected]
> http://lists.ibiblio.org/mailman/listinfo/freetds
>
_______________________________________________
FreeTDS mailing list
[email protected]
http://lists.ibiblio.org/mailman/listinfo/freetds
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.