Skip to content

Commit 7593363

Browse files
committed
Fix call convention warnings for AArch64
1 parent 8b9b6a3 commit 7593363

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

Diff for: Cabal/src/Distribution/Compat/GetShortPathName.hs

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ import System.Win32 (LPCTSTR, LPTSTR, DWORD)
2323
import Foreign.Marshal.Array (allocaArray)
2424

2525
{- FOURMOLU_DISABLE -}
26-
#ifdef x86_64_HOST_ARCH
26+
#if defined(x86_64_HOST_ARCH) || defined(aarch64_HOST_ARCH)
2727
#define WINAPI ccall
2828
#else
2929
#define WINAPI stdcall

Diff for: Cabal/src/Distribution/Compat/Time.hs

+1-1
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ getModTime path = allocaBytes size_WIN32_FILE_ATTRIBUTE_DATA $ \info -> do
9494
return $! ModTime (qwTime :: Word64)
9595

9696
{- FOURMOLU_DISABLE -}
97-
#ifdef x86_64_HOST_ARCH
97+
#if defined(x86_64_HOST_ARCH) || defined(aarch64_HOST_ARCH)
9898
#define CALLCONV ccall
9999
#else
100100
#define CALLCONV stdcall

Diff for: Cabal/src/Distribution/Simple/InstallDirs.hs

+1-1
Original file line numberDiff line numberDiff line change
@@ -537,7 +537,7 @@ csidl_PROGRAM_FILES = 0x0026
537537
-- csidl_PROGRAM_FILES_COMMON = 0x002b
538538

539539
{- FOURMOLU_DISABLE -}
540-
#ifdef x86_64_HOST_ARCH
540+
#if defined(x86_64_HOST_ARCH) || defined(aarch64_HOST_ARCH)
541541
#define CALLCONV ccall
542542
#else
543543
#define CALLCONV stdcall

Diff for: cabal-install/src/Distribution/Client/Win32SelfUpgrade.hs

+1-1
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ deleteOldExeFile verbosity oldPID tmpPath = do
166166
-- A bunch of functions sadly not provided by the Win32 package.
167167

168168
{- FOURMOLU_DISABLE -}
169-
#ifdef x86_64_HOST_ARCH
169+
#if defined(x86_64_HOST_ARCH) || defined(aarch64_HOST_ARCH)
170170
#define CALLCONV ccall
171171
#else
172172
#define CALLCONV stdcall

0 commit comments

Comments
 (0)