freetds AT lists.ibiblio.org
Subject: FreeTDS Development Group
List archive
Re: [freetds] API public header file on Windows with MS tools
- From: "James K. Lowden" <jklowden AT freetds.org>
- To: freetds AT lists.ibiblio.org
- Subject: Re: [freetds] API public header file on Windows with MS tools
- Date: Thu, 7 Jul 2011 22:04:59 -0400
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] API public header file on Windows with MS tools,
Ramiro Morales, 07/07/2011
-
Re: [freetds] API public header file on Windows with MS tools,
James K. Lowden, 07/07/2011
-
[freetds] Data Sources (ODBC) - Adding a new DSN entry,
Sergio NNX, 07/08/2011
- Re: [freetds] Data Sources (ODBC) - Adding a new DSN entry, Frediano Ziglio, 07/08/2011
- Re: [freetds] API public header file on Windows with MS tools, Frediano Ziglio, 07/08/2011
-
[freetds] Data Sources (ODBC) - Adding a new DSN entry,
Sergio NNX, 07/08/2011
-
Re: [freetds] API public header file on Windows with MS tools,
James K. Lowden, 07/07/2011
Archive powered by MHonArc 2.6.24.