Fix mistakes from MingW support commit.

This commit is contained in:
Rokas Kupstys 2019-01-19 15:03:43 +02:00
parent 8157e3a0b3
commit 36c76456f7
2 changed files with 2 additions and 2 deletions

View File

@ -284,7 +284,7 @@ static const char* GetHostInfo()
ptr += sprintf( ptr, "Compiler: unknown\n" ); ptr += sprintf( ptr, "Compiler: unknown\n" );
#endif #endif
#ifdef _WIN32 #if defined _WIN32 || defined __CYGWIN__
# ifndef __CYGWIN__ # ifndef __CYGWIN__
InitWinSock(); InitWinSock();
# endif # endif

View File

@ -2,7 +2,7 @@
#define __TRACYSYSTEM_HPP__ #define __TRACYSYSTEM_HPP__
#ifdef TRACY_ENABLE #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 # define TRACY_COLLECT_THREAD_NAMES
# endif # endif
#endif #endif