logging/backend: Add missing standard includes

A few inclusions were being satisfied indirectly. To prevent breakages
in the future, include these directly.
This commit is contained in:
Lioncash 2018-07-20 15:31:25 -04:00 committed by zhupengfei
parent 765c7e711a
commit 798ebda049
2 changed files with 3 additions and 4 deletions

View File

@ -3,18 +3,19 @@
// Refer to the license.txt file included. // Refer to the license.txt file included.
#include <algorithm> #include <algorithm>
#include <array> #include <atomic>
#include <chrono> #include <chrono>
#include <condition_variable> #include <condition_variable>
#include <memory> #include <memory>
#include <mutex>
#include <thread> #include <thread>
#include <vector>
#ifdef _WIN32 #ifdef _WIN32
#include <share.h> // For _SH_DENYWR #include <share.h> // For _SH_DENYWR
#else #else
#define _SH_DENYWR 0 #define _SH_DENYWR 0
#endif #endif
#include "common/assert.h" #include "common/assert.h"
#include "common/common_funcs.h" // snprintf compatibility define
#include "common/logging/backend.h" #include "common/logging/backend.h"
#include "common/logging/log.h" #include "common/logging/log.h"
#include "common/logging/text_formatter.h" #include "common/logging/text_formatter.h"

View File

@ -5,11 +5,9 @@
#pragma once #pragma once
#include <chrono> #include <chrono>
#include <cstdarg>
#include <memory> #include <memory>
#include <string> #include <string>
#include <string_view> #include <string_view>
#include <utility>
#include "common/file_util.h" #include "common/file_util.h"
#include "common/logging/filter.h" #include "common/logging/filter.h"
#include "common/logging/log.h" #include "common/logging/log.h"