Skip to content

Commit

Permalink
Explicitly mark compareLayer as __cdecl (#231)
Browse files Browse the repository at this point in the history
  • Loading branch information
jenatali authored Feb 7, 2024
1 parent 229410f commit 5383646
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion loader/windows/icd_windows.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 5383646

Please sign in to comment.