Skip to Content.
Sympa Menu

freetds - Re: [freetds] API public header file on Windows with MS tools

freetds AT lists.ibiblio.org

Subject: FreeTDS Development Group

List archive

Chronological Thread  
  • From: Frediano Ziglio <freddy77 AT gmail.com>
  • To: FreeTDS Development Group <freetds AT lists.ibiblio.org>
  • Subject: Re: [freetds] API public header file on Windows with MS tools
  • Date: Fri, 8 Jul 2011 15:18:03 +0200

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 <jklowden AT freetds.org>:
> On Thu, 7 Jul 2011 14:46:55 -0300
> Ramiro Morales <cramm0 AT gmail.com> 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
> FreeTDS AT lists.ibiblio.org
> http://lists.ibiblio.org/mailman/listinfo/freetds
>




Archive powered by MHonArc 2.6.24.

Top of Page