mirror of
https://github.com/libretro/RetroArch
synced 2025-02-22 12:40:09 +00:00
(C89_BUILD) Fix
This commit is contained in:
parent
ee8c5bfa98
commit
a8b834f2c8
@ -446,6 +446,7 @@ unsigned retro_get_cpu_cores(void)
|
|||||||
**/
|
**/
|
||||||
uint64_t retro_get_cpu_features(void)
|
uint64_t retro_get_cpu_features(void)
|
||||||
{
|
{
|
||||||
|
size_t len;
|
||||||
int flags[4];
|
int flags[4];
|
||||||
int vendor_shuffle[3];
|
int vendor_shuffle[3];
|
||||||
char vendor[13] = {0};
|
char vendor[13] = {0};
|
||||||
@ -461,6 +462,7 @@ uint64_t retro_get_cpu_features(void)
|
|||||||
|
|
||||||
memset(buf, 0, sizeof(buf));
|
memset(buf, 0, sizeof(buf));
|
||||||
|
|
||||||
|
(void)len;
|
||||||
(void)cpu_flags;
|
(void)cpu_flags;
|
||||||
(void)flags;
|
(void)flags;
|
||||||
(void)max_flag;
|
(void)max_flag;
|
||||||
@ -468,7 +470,7 @@ uint64_t retro_get_cpu_features(void)
|
|||||||
(void)vendor_shuffle;
|
(void)vendor_shuffle;
|
||||||
|
|
||||||
#if defined(__MACH__)
|
#if defined(__MACH__)
|
||||||
size_t len = sizeof(size_t);
|
len = sizeof(size_t);
|
||||||
if (sysctlbyname("hw.optional.mmx", NULL, &len, NULL, 0) == 0)
|
if (sysctlbyname("hw.optional.mmx", NULL, &len, NULL, 0) == 0)
|
||||||
{
|
{
|
||||||
cpu |= RETRO_SIMD_MMX;
|
cpu |= RETRO_SIMD_MMX;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user