Re: [PATCH] for win32 support of snprintf call in src/ctlib/ct.c
David Dick <[email protected]>
| Newsgroups | gmane.comp.db.tds.freetds |
|---|---|
| Message-ID | <[email protected]> |
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? _______________________________________________ FreeTDS mailing list [email protected] http://lists.ibiblio.org/mailman/listinfo/freetds
freetds_snprintf.patch
(text/plain, 386 B)
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