From 81aeb17c888240f1516fd322760e33b3a576a9fd Mon Sep 17 00:00:00 2001
From: rswindell <>
Date: Fri, 22 Feb 2008 09:28:52 +0000
Subject: [PATCH] If USE_SNPRINTF is defined, then don't redefined snprintf to
 use safe_snprintf.

---
 src/xpdev/genwrap.h | 9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)

diff --git a/src/xpdev/genwrap.h b/src/xpdev/genwrap.h
index 8c654fb47b..56d93ceea4 100644
--- a/src/xpdev/genwrap.h
+++ b/src/xpdev/genwrap.h
@@ -8,7 +8,7 @@
  * @format.tab-size 4		(Plain Text/Source Code File Header)			*
  * @format.use-tabs true	(see http://www.synchro.net/ptsc_hdr.html)		*
  *																			*
- * Copyright 2007 Rob Swindell - http://www.synchro.net/copyright.html		*
+ * Copyright 2008 Rob Swindell - http://www.synchro.net/copyright.html		*
  *																			*
  * This library is free software; you can redistribute it and/or			*
  * modify it under the terms of the GNU Lesser General Public License		*
@@ -160,9 +160,14 @@ extern "C" {
 /* String Functionss */
 /*********************/
 
-#define snprintf	safe_snprintf
+#ifndef USE_SNPRINTF
+	#define snprintf		safe_snprintf
+#endif
 
 #if defined(_MSC_VER) || defined(__MINGW32__) || defined(__DMC__)
+#if !defined(snprintf)
+	#define snprintf		_snprintf
+#endif
 	#define vsnprintf		_vsnprintf
 #endif
 
-- 
GitLab