From 36c76456f7323a31a39e79175727a7b5217b8416 Mon Sep 17 00:00:00 2001 From: Rokas Kupstys Date: Sat, 19 Jan 2019 15:03:43 +0200 Subject: [PATCH] Fix mistakes from MingW support commit. --- client/TracyProfiler.cpp | 2 +- common/TracySystem.hpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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