Added ability to turn off sending of stats in CMake configuration

This commit is contained in:
alexey.lysiuk 2018-03-16 15:47:23 +02:00
commit 9a737a0622
2 changed files with 17 additions and 0 deletions

View file

@ -1,3 +1,12 @@
#ifdef NO_SEND_STATS
void D_DoAnonStats()
{
}
#else // !NO_SEND_STATS
#if defined(_WIN32)
#define _WIN32_WINNT 0x0501
#define WIN32_LEAN_AND_MEAN
@ -276,3 +285,5 @@ void D_DoAnonStats()
std::thread t1(D_DoHTTPRequest, requeststring);
t1.detach();
}
#endif // NO_SEND_STATS