diff --git a/client/TracyProfiler.cpp b/client/TracyProfiler.cpp index 6f52afa7..de1b7be4 100644 --- a/client/TracyProfiler.cpp +++ b/client/TracyProfiler.cpp @@ -284,7 +284,7 @@ static const char* GetHostInfo() ptr += sprintf( ptr, "Compiler: unknown\n" ); #endif -#ifdef _WIN32 +#if defined _WIN32 || defined __CYGWIN__ # ifndef __CYGWIN__ InitWinSock(); # endif diff --git a/common/TracySystem.hpp b/common/TracySystem.hpp index 77917c9a..38d67095 100644 --- a/common/TracySystem.hpp +++ b/common/TracySystem.hpp @@ -2,7 +2,7 @@ #define __TRACYSYSTEM_HPP__ #ifdef TRACY_ENABLE -# if defined __ANDROID__ || defined __CYGWIN__ || defined __MINGW32__ || defined __APPLE__ || defined _GNU_SOURCE || ( defined _WIN32 && ( !defined NTDDI_WIN10_RS2 || NTDDI_VERSION < NTDDI_WIN10_RS2 ) ) +# if defined __ANDROID__ || defined __CYGWIN__ || defined __APPLE__ || defined _GNU_SOURCE || ( defined _WIN32 && ( !defined NTDDI_WIN10_RS2 || NTDDI_VERSION < NTDDI_WIN10_RS2 ) ) # define TRACY_COLLECT_THREAD_NAMES # endif #endif