Skip to content
Snippets Groups Projects
Commit 81aeb17c authored by rswindell's avatar rswindell
Browse files

If USE_SNPRINTF is defined, then don't redefined snprintf to use safe_snprintf.

parent 4bf0b53c
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment