Do not use dllimport in glog on Windows (#6008)

Use osquery/logger.h instead of including glog headers.
Reduce warnings about locally defined and imported symbols.
This commit is contained in:
Stefano Bonicatti 2019-11-08 13:33:51 +01:00 committed by Teddy Reed
parent 11ae5a21b0
commit e80af8953e
3 changed files with 3 additions and 2 deletions

View File

@ -62,6 +62,7 @@ osquery_cxx_library(
visibility = ["PUBLIC"],
deps = [
":to",
osquery_target("osquery/logger:logger"),
osquery_target("osquery/utils/expected:expected"),
osquery_tp_target("boost"),
osquery_tp_target("glog"),

View File

@ -41,6 +41,7 @@ function(generateOsqueryUtilsConversions)
target_link_libraries(osquery_utils_conversions PUBLIC
osquery_cxx_settings
osquery_logger
osquery_utils_conversions_to
osquery_utils_expected
thirdparty_boost

View File

@ -9,8 +9,7 @@
#include <codecvt>
#include <string>
#include <glog/logging.h>
#include <osquery/logger.h>
#include <osquery/utils/conversions/windows/strings.h>
namespace osquery {