Author: turnstep
Date: Sat Feb 16 15:40:58 2008
New Revision: 10750
Modified:
DBD-Pg/trunk/quote.c
Log:
Windows snprint hack, as reported by Mark Dootson
Modified: DBD-Pg/trunk/quote.c
==============================================================================
--- DBD-Pg/trunk/quote.c (original)
+++ DBD-Pg/trunk/quote.c Sat Feb 16 15:40:58 2008
@@ -12,6 +12,12 @@
#include "Pg.h"
#include "types.h"
+#ifdef WIN32
+#ifndef snprint
+#define snprintf _snprintf
+#endif
+#endif
+
char * null_quote(const char *string, STRLEN len, STRLEN *retlen)
{
char *result;