From cac75789baf8fa230843b22ff74837553f3ad8aa Mon Sep 17 00:00:00 2001 From: PKEuS Date: Sat, 15 Aug 2015 18:17:27 +0200 Subject: [PATCH] Declared *PRINTF wrappers as static --- tinyxml2.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tinyxml2.cpp b/tinyxml2.cpp index 128e819..4a1573f 100755 --- a/tinyxml2.cpp +++ b/tinyxml2.cpp @@ -41,7 +41,7 @@ distribution. const char *format [, argument] ... );*/ - inline int TIXML_SNPRINTF( char* buffer, size_t size, const char* format, ... ) + static inline int TIXML_SNPRINTF( char* buffer, size_t size, const char* format, ... ) { va_list va; va_start( va, format ); @@ -50,7 +50,7 @@ distribution. return result; } - inline int TIXML_VSNPRINTF( char* buffer, size_t size, const char* format, va_list va ) + static inline int TIXML_VSNPRINTF( char* buffer, size_t size, const char* format, va_list va ) { int result = vsnprintf_s( buffer, size, _TRUNCATE, format, va ); return result; @@ -68,7 +68,7 @@ distribution. #define TIXML_VSCPRINTF _vscprintf // VS2003's C runtime has this, but VC6 C runtime or WinCE SDK doesn't have. #else // Microsoft Visual Studio 2003 and earlier or WinCE. - inline int TIXML_VSCPRINTF( const char* format, va_list va ) + static inline int TIXML_VSCPRINTF( const char* format, va_list va ) { int len = 512; for (;;) { @@ -91,7 +91,7 @@ distribution. //#warning( "Using sn* functions." ) #define TIXML_SNPRINTF snprintf #define TIXML_VSNPRINTF vsnprintf - inline int TIXML_VSCPRINTF( const char* format, va_list va ) + static inline int TIXML_VSCPRINTF( const char* format, va_list va ) { int len = vsnprintf( 0, 0, format, va ); TIXMLASSERT( len >= 0 );