From 53836467bb2692d5ced0ed2071e76d4816fd9b9a Mon Sep 17 00:00:00 2001 From: Jesse Natalie Date: Tue, 6 Feb 2024 21:41:13 -0800 Subject: [PATCH] Explicitly mark compareLayer as __cdecl (#231) --- loader/windows/icd_windows.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/loader/windows/icd_windows.c b/loader/windows/icd_windows.c index 237ec5c1..d7716253 100644 --- a/loader/windows/icd_windows.c +++ b/loader/windows/icd_windows.c @@ -109,7 +109,7 @@ static WinLayer* pWinLayerBegin; static WinLayer* pWinLayerEnd; static WinLayer* pWinLayerCapacity; -static int compareLayer(const void *a, const void *b) +static int __cdecl compareLayer(const void *a, const void *b) { return ((WinLayer *)a)->priority < ((WinLayer *)b)->priority ? -1 : ((WinLayer *)a)->priority > ((WinLayer *)b)->priority ? 1 : 0;