Module: check_mk
Branch: master
Commit: 44c0643b8b998d7bf0238e3fbd1ecb6116687fc3
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=44c0643b8b998d…
Author: Jukka Aro <ja(a)mathias-kettner.de>
Date: Tue Mar 27 11:45:02 2018 +0200
Win-agent: clean typedefs and preprocessor defines
* Prefer C++11 'using' directive to old typedefs for type aliases.
* Clean unused or redundant typedefs and preprocessor defines.
* Clean the use of _WIN32_WINNT:
- Our current MinGW-W64 default is _WIN32_WINNT_WS03 (Server 2003).
- Only need to declare _WIN32_WINNT if need newer than default.
- Windows Event Log API (>= _WIN32_WINNT_VISTA) is the only feature
that needs this declaration.
---
agents/windows/Configurable.h | 10 +++++-----
agents/windows/CrashHandler.h | 17 ++++-------------
agents/windows/EventLog.h | 2 --
agents/windows/EventLogVista.h | 5 ++---
agents/windows/PerfCounter.h | 9 +--------
agents/windows/PerfCounterCommon.h | 3 ---
agents/windows/PerfCounterPdh.h | 2 +-
agents/windows/SettingsCollector.h | 4 ++--
agents/windows/Thread.h | 2 +-
agents/windows/build_version | 2 +-
agents/windows/check_mk_agent.cc | 3 ---
agents/windows/sections/SectionLogwatch.h | 9 ++++-----
agents/windows/sections/SectionMem.cc | 2 +-
agents/windows/sections/SectionPluginGroup.h | 3 +--
agents/windows/sections/SectionServices.cc | 1 -
agents/windows/sections/SectionServices.h | 21 ---------------------
agents/windows/sections/SectionUptime.cc | 3 ---
agents/windows/sections/SectionUptime.h | 2 +-
agents/windows/sections/SectionWinperf.h | 4 +---
agents/windows/types.h | 2 --
agents/windows/win_error.h | 5 ++---
21 files changed, 27 insertions(+), 84 deletions(-)
Diff:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commitdiff;h=44c0643b8b…