diff options
author | Konstantin Käfer <mail@kkaefer.com> | 2014-07-11 16:42:09 -0700 |
---|---|---|
committer | Konstantin Käfer <mail@kkaefer.com> | 2014-07-11 16:42:09 -0700 |
commit | 30298be270226a9bac3eb434e39a7c93eb87503e (patch) | |
tree | 30b6ccfcdcaefba711256b17dca745d0cebed91c /common | |
parent | 54fe8aab365345bb834647fe02cb7809fe37015f (diff) | |
download | qtlocation-mapboxgl-30298be270226a9bac3eb434e39a7c93eb87503e.tar.gz |
add cstdarg headers
Diffstat (limited to 'common')
-rw-r--r-- | common/nslog_log.mm | 4 | ||||
-rw-r--r-- | common/stderr_log.cpp | 1 |
2 files changed, 4 insertions, 1 deletions
diff --git a/common/nslog_log.mm b/common/nslog_log.mm index ad685ea8dc..76f7ac42cf 100644 --- a/common/nslog_log.mm +++ b/common/nslog_log.mm @@ -2,6 +2,8 @@ #import <Foundation/Foundation.h> +#include <cstdarg> + namespace llmr { void NSLogBackend::record(EventSeverity severity, Event event, const std::string &msg) { @@ -15,7 +17,7 @@ void NSLogBackend::record(EventSeverity severity, Event event, const std::string void NSLogBackend::record(EventSeverity severity, Event event, const char* format, ...) { va_list args; va_start(args, format); - const int len = vsnprintf(NULL, 0, format, args); + const size_t len = vsnprintf(NULL, 0, format, args); va_end(args); std::unique_ptr<char[]> buffer(new char[len + 1]); va_start(args, format); diff --git a/common/stderr_log.cpp b/common/stderr_log.cpp index 18ad9b3f10..da5799d753 100644 --- a/common/stderr_log.cpp +++ b/common/stderr_log.cpp @@ -1,6 +1,7 @@ #include "stderr_log.hpp" #include <iostream> +#include <cstdarg> namespace llmr { |