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:
@@ -1,7 +1,7 @@
|
||||
#ifndef __TRACYPOPCNT_HPP__
|
||||
#define __TRACYPOPCNT_HPP__
|
||||
|
||||
#ifdef _MSC_VER
|
||||
#ifdef _WIN32
|
||||
# include <intrin.h>
|
||||
# define TracyCountBits __popcnt64
|
||||
#else
|
||||
|
||||
@@ -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"
|
||||
|
||||
|
||||
@@ -1,3 +1,6 @@
|
||||
#ifdef __MINGW32__
|
||||
# define __STDC_FORMAT_MACROS
|
||||
#endif
|
||||
#include <algorithm>
|
||||
#include <assert.h>
|
||||
#include <chrono>
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user