mirror of
https://github.com/cemu-project/Cemu.git
synced 2025-07-03 13:31:18 +12:00
Replace __WIN32 with __clang__
This commit is contained in:
parent
3bf298cb22
commit
17272e60fa
4 changed files with 6 additions and 6 deletions
|
@ -77,7 +77,7 @@ void ih264d_init_function_ptr(dec_struct_t *ps_codec)
|
|||
}
|
||||
}
|
||||
|
||||
#ifndef __WIN32
|
||||
#ifdef __clang__
|
||||
#include <cpuid.h>
|
||||
|
||||
void __cpuid2(signed int* cpuInfo, unsigned int level)
|
||||
|
|
|
@ -72,7 +72,7 @@ Account::Account(uint32 persistent_id, std::wstring_view mii_name)
|
|||
|
||||
//Use boost library to escape static asserts in Linux Builds
|
||||
//TODO: Look for fix in libstdc++
|
||||
#ifndef __WIN32
|
||||
#ifdef __clang__
|
||||
boost::random::uniform_int_distribution<uint16> dist(std::numeric_limits<uint8>::min(), std::numeric_limits<uint8>::max());
|
||||
#else
|
||||
std::uniform_int_distribution<uint16> dist(std::numeric_limits<uint8>::min(), std::numeric_limits<uint8>::max());
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
#include<bitset>
|
||||
#include<random>
|
||||
|
||||
#ifndef __WIN32
|
||||
#ifdef __clang__
|
||||
#include <boost/random/uniform_int.hpp>
|
||||
#endif
|
||||
|
||||
|
@ -117,7 +117,7 @@ void releasePRUDPPort(uint16 port)
|
|||
std::mt19937_64 prudpRG(GetTickCount());
|
||||
//Workaround for static asserts when using uniform_int_distribution
|
||||
//TODO: Look for fix in libstdc++
|
||||
#ifdef __WIN32
|
||||
#ifndef __clang__
|
||||
std::uniform_int_distribution<int> prudpDis8(0, 0xFF);
|
||||
#else
|
||||
boost::random::uniform_int_distribution<int> prudpDis8(0, 0xFF);
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
|
||||
#include "config/ActiveSettings.h"
|
||||
|
||||
#ifndef __WIN32
|
||||
#ifdef __clang__
|
||||
#include <boost/random/uniform_int.hpp>
|
||||
#endif
|
||||
|
||||
|
@ -433,7 +433,7 @@ std::string GenerateRandomString(size_t length, std::string_view characters)
|
|||
std::mt19937 gen(rd());
|
||||
//Workaround for static asserts using boost
|
||||
//TODO: Wait for fix in libstdc++
|
||||
#ifdef __WIN32
|
||||
#ifndef __clang__
|
||||
std::uniform_int_distribution<decltype(characters.size())> index_dist(0, characters.size() - 1);
|
||||
#else
|
||||
boost::random::uniform_int_distribution<decltype(characters.size())> index_dist(0, characters.size() - 1);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue