Skip to content

Commit

Permalink
Disable telemetry added in MSVC 2015
Browse files Browse the repository at this point in the history
  • Loading branch information
dscharrer committed Jun 28, 2016
1 parent 13ae02f commit 6e6d955
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/util/windows.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,16 @@ namespace { typedef boost::filesystem::detail::utf8_codecvt_facet utf8_codecvt;

#include "util/ansi.hpp"

// Disable telemetry added in Visual Studio 2015
#if defined(_MSC_VER) && _MSC_VER >= 1900
extern "C" {
void _cdecl __vcrt_initialize_telemetry_provider() { }
void _cdecl __telemetry_main_invoke_trigger() { }
void _cdecl __telemetry_main_return_trigger() { }
void _cdecl __vcrt_uninitialize_telemetry_provider() { }
};
#endif

namespace util {

class windows_console_sink : public util::ansi_console_parser<windows_console_sink> {
Expand Down

0 comments on commit 6e6d955

Please sign in to comment.