summaryrefslogtreecommitdiff
path: root/src/dolphin
diff options
context:
space:
mode:
authorLagoLunatic <LagoLunatic@users.noreply.github.com>2024-11-22 19:04:56 -0500
committerLagoLunatic <LagoLunatic@users.noreply.github.com>2024-11-22 19:04:56 -0500
commitc46adebdb9d06e870ce2a27fa61646c2797fe990 (patch)
tree23fc2b8e512ac1e6fd43bfbb164cd79fd591863b /src/dolphin
parent12c83739e9889b8a799c83f038db1f07ac36ce54 (diff)
Fix more clangd errors
This also seems to fix the problem where clangd failed to index most header files, which was due to the typo in JGeometry.h.
Diffstat (limited to 'src/dolphin')
-rw-r--r--src/dolphin/os/OSReset.c2
-rw-r--r--src/dolphin/os/OSTime.c4
2 files changed, 6 insertions, 0 deletions
diff --git a/src/dolphin/os/OSReset.c b/src/dolphin/os/OSReset.c
index 4f131b1a..4606713b 100644
--- a/src/dolphin/os/OSReset.c
+++ b/src/dolphin/os/OSReset.c
@@ -55,6 +55,7 @@ inline BOOL __OSCallResetFunctions(u32 arg0) {
return 1;
}
+#ifdef __MWERKS__
static asm void Reset(register s32 param_0) {
// clang-format off
nofralloc
@@ -107,6 +108,7 @@ lbl_8033F7F8:
b lbl_8033F790
// clang-format on
}
+#endif
inline static void KillThreads(void) {
OSThread* thread;
diff --git a/src/dolphin/os/OSTime.c b/src/dolphin/os/OSTime.c
index 4ce6151c..cd622f5e 100644
--- a/src/dolphin/os/OSTime.c
+++ b/src/dolphin/os/OSTime.c
@@ -5,6 +5,7 @@
#define OS_TIME_WEEK_DAY_MAX 7
#define OS_TIME_YEAR_DAY_MAX 365
+#ifdef __MWERKS__
asm OSTime OSGetTime(void) {
// clang-format off
nofralloc
@@ -19,7 +20,9 @@ asm OSTime OSGetTime(void) {
blr
// clang-format on
}
+#endif
+#ifdef __MWERKS__
asm OSTick OSGetTick(void) {
// clang-format off
nofralloc
@@ -28,6 +31,7 @@ asm OSTick OSGetTick(void) {
blr
// clang-format on
}
+#endif
#define OS_SYSTEMTIME_BASE 0x30D8