Skip to content

Commit cfda1f5

Browse files
committed
PhysFS: Fix compile error when targetting Windows ARM64
1 parent 975cadf commit cfda1f5

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/libraries/physfs/physfs_lzmasdk.h

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -508,7 +508,8 @@ MY_CPU_LE_UNALIGN means that CPU is LITTLE ENDIAN and CPU supports unaligned mem
508508
#if defined(MY_CPU_AMD64) \
509509
|| defined(_M_IA64) \
510510
|| defined(__AARCH64EL__) \
511-
|| defined(__AARCH64EB__)
511+
|| defined(__AARCH64EB__) \
512+
|| defined(_M_ARM64)
512513
#define MY_CPU_64BIT
513514
#endif
514515

@@ -529,7 +530,7 @@ MY_CPU_LE_UNALIGN means that CPU is LITTLE ENDIAN and CPU supports unaligned mem
529530
#define MY_CPU_32BIT
530531
#endif
531532

532-
#if defined(_WIN32) && defined(_M_ARM)
533+
#if defined(_WIN32) && (defined(_M_ARM) || defined(_M_ARM64))
533534
#define MY_CPU_ARM_LE
534535
#endif
535536

0 commit comments

Comments
 (0)