Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Some warning fixes #668

Merged
merged 2 commits into from
May 24, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion bin/nxdk-cc
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

# SPDX-License-Identifier: CC0-1.0

# SPDX-FileCopyrightText: 2021-2022 Stefan Schmidt
# SPDX-FileCopyrightText: 2021-2024 Stefan Schmidt

clang \
-target i386-pc-win32 \
Expand All @@ -17,6 +17,7 @@ clang \
-I${NXDK_DIR}/lib/pdclib/platform/xbox/include \
-I${NXDK_DIR}/lib/winapi \
-I${NXDK_DIR}/lib/xboxrt/vcruntime \
-Wno-builtin-macro-redefined \
-DNXDK \
-D__STDC__=1 \
-U__STDC_NO_THREADS__ \
Expand Down
3 changes: 2 additions & 1 deletion bin/nxdk-cxx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

# SPDX-License-Identifier: CC0-1.0

# SPDX-FileCopyrightText: 2021-2022 Stefan Schmidt
# SPDX-FileCopyrightText: 2021-2024 Stefan Schmidt

clang \
-target i386-pc-win32 \
Expand All @@ -18,6 +18,7 @@ clang \
-I${NXDK_DIR}/lib/pdclib/platform/xbox/include \
-I${NXDK_DIR}/lib/winapi \
-I${NXDK_DIR}/lib/xboxrt/vcruntime \
-Wno-builtin-macro-redefined \
-DNXDK \
-D__STDC__=1 \
-U__STDC_NO_THREADS__ \
Expand Down
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
Loading