summaryrefslogtreecommitdiffstats
path: root/src/StringUtils.h
diff options
context:
space:
mode:
authorMattes D <github@xoft.cz>2014-01-15 22:41:45 +0100
committerMattes D <github@xoft.cz>2014-01-15 22:41:45 +0100
commit4974bf2832b874279fbf6fcca28ca5d6984025b9 (patch)
tree83323f2103745cea670cc9a04ca182ed9c8db55e /src/StringUtils.h
parentProtoProxy: use CMake to generate the MSVC project files. (diff)
parentFixed ProtoProxy compilation. (diff)
downloadcuberite-4974bf2832b874279fbf6fcca28ca5d6984025b9.tar
cuberite-4974bf2832b874279fbf6fcca28ca5d6984025b9.tar.gz
cuberite-4974bf2832b874279fbf6fcca28ca5d6984025b9.tar.bz2
cuberite-4974bf2832b874279fbf6fcca28ca5d6984025b9.tar.lz
cuberite-4974bf2832b874279fbf6fcca28ca5d6984025b9.tar.xz
cuberite-4974bf2832b874279fbf6fcca28ca5d6984025b9.tar.zst
cuberite-4974bf2832b874279fbf6fcca28ca5d6984025b9.zip
Diffstat (limited to '')
-rw-r--r--src/StringUtils.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/StringUtils.h b/src/StringUtils.h
index 2373f3843..35faeb01b 100644
--- a/src/StringUtils.h
+++ b/src/StringUtils.h
@@ -21,8 +21,12 @@ typedef std::list<AString> AStringList;
-/// Add the formated string to the existing data in the string
-extern AString & AppendVPrintf(AString & str, const char * format, va_list args);
+/** Add the formated string to the existing data in the string
+It is silly to need to specify the arguments twice, but it is required for x64 / GCC:
+Ref.: issue #541, http://www.bailopan.net/blog/?p=30
+va_copy is not available until C++11, so we need to make do with passing a duplicate.
+*/
+extern AString & AppendVPrintf(AString & str, const char * format, va_list args, va_list argsCopy);
/// Output the formatted text into the string
extern AString & Printf (AString & str, const char * format, ...);