summaryrefslogtreecommitdiff
path: root/include/JSystem/J3DGraphBase/J3DStruct.h
diff options
context:
space:
mode:
authorkipcode66 <kipcode66@gmail.com>2025-12-07 00:08:05 -0500
committerGitHub <noreply@github.com>2025-12-06 21:08:05 -0800
commitfc31053cb6cbae738923c93f4ab574b06334d73d (patch)
treef47a4ddc2b88d00a87617a56e8489b2f60028bb8 /include/JSystem/J3DGraphBase/J3DStruct.h
parent7ac2c38caf44f8b20088a4f0376371ce15c78844 (diff)
Improving compatibility with standard cpp compiler (#2920)
* Improving compatibility with standard cpp compiler * Add __REGISTER macro for non mwcc compatibility * Fix for PR comments * fix missing define for revolution * Simplifying cSAngle conversion
Diffstat (limited to 'include/JSystem/J3DGraphBase/J3DStruct.h')
-rw-r--r--include/JSystem/J3DGraphBase/J3DStruct.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/include/JSystem/J3DGraphBase/J3DStruct.h b/include/JSystem/J3DGraphBase/J3DStruct.h
index e62f8d9094..24fdb5c265 100644
--- a/include/JSystem/J3DGraphBase/J3DStruct.h
+++ b/include/JSystem/J3DGraphBase/J3DStruct.h
@@ -54,9 +54,9 @@ struct J3DTextureSRTInfo {
inline void operator=(J3DTextureSRTInfo const& other) {
#ifdef __MWERKS__
- register const f32* src = &other.mScaleX;
- register f32* dst = &mScaleX;
- register f32 xy;
+ __REGISTER const f32* src = &other.mScaleX;
+ __REGISTER f32* dst = &mScaleX;
+ __REGISTER f32 xy;
asm {
psq_l xy, 0(src), 0, 0
psq_st xy, 0(dst), 0, 0