Skip to Content.
Sympa Menu

freetds - Re: [freetds] [PATCH] for win32 support of snprintf call in src/ctlib/ct.c

freetds AT lists.ibiblio.org

Subject: FreeTDS Development Group

List archive

Chronological Thread  
  • From: David Dick <ddick AT cpan.org>
  • To: FreeTDS Development Group <freetds AT lists.ibiblio.org>
  • Subject: Re: [freetds] [PATCH] for win32 support of snprintf call in src/ctlib/ct.c
  • Date: Tue, 09 Feb 2010 17:13:36 +1100

On 09/02/10 15:07, James K. Lowden wrote:
Thank you for the patch, but we have to turn it down! Cf.
include/tds_sysdep_private.h for a better way:

fair enough. How about the following patch?
diff -Naur old/include/tds_sysdep_private.h new/include/tds_sysdep_private.h
--- old/include/tds_sysdep_private.h 2008-03-13 08:08:09.000000000 +1100
+++ new/include/tds_sysdep_private.h 2010-02-09 15:46:44.000000000 +1100
@@ -82,6 +82,7 @@
#define strncasecmp strnicmp
#define atoll _atoi64
#define vsnprintf _vsnprintf
+#define snprintf _snprintf

#ifndef WIN32
#define WIN32 1



Archive powered by MHonArc 2.6.24.

Top of Page