Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 980d13f

Browse files
committed
log4cpp: include cstdarg instead of stdarg.h
This might fix a compile error with GCC 5.4 without --std=c++11: /home/travis/build/orocos-toolchain/orocos_toolchain/log4cpp/src/StringUtil.cpp: In static member function ‘static std::__cxx11::string log4cpp::StringUtil::vform(const char*, __va_list_tag*)’: /home/travis/build/orocos-toolchain/orocos_toolchain/log4cpp/src/StringUtil.cpp:47:36: error: ‘va_copy’ was not declared in this scope va_copy(args_copy, args); ^
1 parent 2dc9e00 commit 980d13f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/StringUtil.hh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
#include <string>
1414
#include <vector>
1515
#include <climits>
16-
#include <stdarg.h>
16+
#include <cstdarg>
1717

1818
namespace log4cpp {
1919

0 commit comments

Comments
 (0)