Hi Luis,
Please try the following patch (include VC6 trick):
include/sqlfront.h | 5 +++++
include/tds_sysdep_private.h | 2 +-
win32/config.h | 7 ++++---
3 files changed, 10 insertions(+), 4 deletions(-)
--- a/include/sqlfront.h
+++ b/include/sqlfront.h
@@ -29,11 +29,16 @@ typedef DBPROCESS * PDBPROCESS;
typedef LOGINREC * PLOGINREC;
typedef DBCURSOR * PDBCURSOR;
+#ifndef _WIN32
+/*
+ Some Windows Data Types (
http://msdn.microsoft.com/en-us/library/aa383751%28VS.85%29.aspx)
+ */
typedef int * LPINT;
typedef char * LPSTR;
typedef BYTE * LPBYTE;
typedef void * LPVOID;
typedef const char * LPCSTR;
+#endif
typedef const LPINT LPCINT;
typedef const LPBYTE LPCBYTE ;
--- a/include/tds_sysdep_private.h
+++ b/include/tds_sysdep_private.h
@@ -107,7 +107,7 @@ typedef DWORD pid_t;
#define TDS_SDIR_SEPARATOR "\\"
/* use macros to use new style names */
-#if defined(__MSVCRT__) || defined(_MSC_VER)
+#if _MSC_VER > 1200
#define getpid() _getpid()
#define strdup(s) _strdup(s)
#undef fileno
--- a/win32/config.h
+++ b/win32/config.h
@@ -89,7 +89,7 @@
#define HAVE_INT64 1
/* Define to 1 if you have the <inttypes.h> header file. */
-#define HAVE_INTTYPES_H 1
+/* #undef HAVE_INTTYPES_H */
/* Define to 1 if you have the <limits.h> header file. */
#define HAVE_LIMITS_H 1
@@ -281,7 +281,8 @@
#endif
#include <winsock2.h>
-#include <BaseTsd.h>
+#include <basetsd.h>
+#ifndef _SSIZE_T_DEFINED
typedef SSIZE_T ssize_t;
-
+#endif
--
Dongsheng
On Tue, Jan 25, 2011 at 21:49, Luis Lavena <[email protected]> wrote:
> On Tue, Jan 25, 2011 at 1:21 AM, JonY <[email protected]> wrote:
> >
> > Hi,
> >
> > afaik, mingw.org doesn't have winscard.h, so its not affected.
> > Redefining something that MS has established isn't a good idea at all.
> >
> > I don't think sqlfront.h should be messing with LPCBYTE when its already
> > used by windows headers, even when LEAN_AND_MEAN is in use.
> >
>
> Thank you JonY, already discussed with FreeTDS developers and will
> provide patches to avoid these issues.
>
> Regards,
> --
> Luis Lavena
> AREA 17
> -
> Perfection in design is achieved not when there is nothing more to add,
> but rather when there is nothing more to take away.
> Antoine de Saint-Exupéry
>
>
> ------------------------------------------------------------------------------
> Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)!
> Finally, a world-class log management solution at an even better
> price-free!
> Download using promo code Free_Logger_4_Dev2Dev. Offer expires
> February 28th, so secure your free ArcSight Logger TODAY!
> http://p.sf.net/sfu/arcsight-sfd2d
> _______________________________________________
> Mingw-w64-public mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/mingw-w64-public
>
------------------------------------------------------------------------------
Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)!
Finally, a world-class log management solution at an even better price-free!
Download using promo code Free_Logger_4_Dev2Dev. Offer expires
February 28th, so secure your free ArcSight Logger TODAY!
http://p.sf.net/sfu/arcsight-sfd2d
_______________________________________________
Mingw-w64-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public