Skip to content

Commit

Permalink
winapi: Suppress language extension warning on LONG64 typedef
Browse files Browse the repository at this point in the history
  • Loading branch information
thrimbor authored and Ryzee119 committed May 24, 2024
1 parent 7774abd commit fafaf26
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/winapi/winnt.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// SPDX-License-Identifier: MIT

// SPDX-FileCopyrightText: 2019 Jannik Vogel
// SPDX-FileCopyrightText: 2019-2022 Stefan Schmidt
// SPDX-FileCopyrightText: 2019-2024 Stefan Schmidt
// SPDX-FileCopyrightText: 2021 Lucas Jansson

#ifndef __WINNT_H__
Expand All @@ -13,7 +13,10 @@ typedef LONG HRESULT;

typedef CHAR *LPSTR;

#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wlanguage-extension-token"
typedef signed __int64 LONG64, *PLONG64;
#pragma clang diagnostic pop

LONG64 InterlockedExchange64 (LONG64 volatile *Target, LONG64 Value);
PVOID InterlockedExchangePointer (PVOID volatile *Target, PVOID Value);
Expand Down

0 comments on commit fafaf26

Please sign in to comment.