1
0
mirror of https://github.com/wolfpld/tracy.git synced 2025-03-20 07:40:02 +08:00

Fix builds with MingW.

This commit is contained in:
Rokas Kupstys
2019-01-19 13:03:30 +02:00
parent 32f0a27d3b
commit 8157e3a0b3
11 changed files with 69 additions and 45 deletions
+1 -1
View File
@@ -1,7 +1,7 @@
#ifndef __TRACYPOPCNT_HPP__
#define __TRACYPOPCNT_HPP__
#ifdef _MSC_VER
#ifdef _WIN32
# include <intrin.h>
# define TracyCountBits __popcnt64
#else
+1 -1
View File
@@ -8,10 +8,10 @@
#else
# include <dirent.h>
# include <sys/types.h>
# include <sys/stat.h>
# include <unistd.h>
# include <errno.h>
#endif
#include <sys/stat.h>
#include "TracyStorage.hpp"
+3
View File
@@ -1,3 +1,6 @@
#ifdef __MINGW32__
# define __STDC_FORMAT_MACROS
#endif
#include <algorithm>
#include <assert.h>
#include <chrono>
+2 -2
View File
@@ -1,10 +1,10 @@
#ifdef _MSC_VER
#ifdef _WIN32
# include <winsock2.h>
#else
# include <sys/time.h>
#endif
#if defined _MSC_VER || defined __MINGW32__
#ifdef _WIN32
# include <malloc.h>
#else
# include <alloca.h>