mirror of
https://github.com/yuzu-mirror/dynarmic.git
synced 2026-04-04 13:57:38 +00:00
Fix Linux build
This commit is contained in:
parent
1252bd653d
commit
61eddbd1fa
3 changed files with 4 additions and 3 deletions
|
|
@ -11,6 +11,7 @@
|
|||
#include "common/string_util.h"
|
||||
#else
|
||||
#include <cstdlib>
|
||||
#include <cstring>
|
||||
#include <sys/mman.h>
|
||||
#endif
|
||||
|
||||
|
|
|
|||
|
|
@ -82,7 +82,7 @@ static CPUCaps Detect() {
|
|||
caps.vendor = CPUVendor::OTHER;
|
||||
|
||||
// Set reasonable default brand string even if brand string not available
|
||||
strcpy_s(caps.cpu_string, sizeof(caps.cpu_string), caps.brand_string);
|
||||
strncpy(caps.cpu_string, caps.brand_string, sizeof(caps.cpu_string));
|
||||
|
||||
// Detect family and other miscellaneous features
|
||||
if (max_std_fn >= 1) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue