mirror of
https://github.com/zeldaret/tww.git
synced 2026-07-10 06:16:52 -04:00
Merge pull request #548 from Jcw87/other_compilers
Improve compatibility with other compilers
This commit is contained in:
@@ -5,6 +5,7 @@
|
||||
#include "dolphin/mtx/mtx.h"
|
||||
#include "dolphin/mtx/mtx44.h"
|
||||
#include "dolphin/mtx/vec.h"
|
||||
#include "global.h"
|
||||
|
||||
class J3DLightInfo {
|
||||
public:
|
||||
@@ -144,7 +145,7 @@ struct J3DIndTexOrderInfo {
|
||||
};
|
||||
|
||||
struct J3DTevSwapModeInfo {
|
||||
/* 0x0 */ u8 field_0x0 __attribute__((aligned(4)));
|
||||
/* 0x0 */ u8 field_0x0 ALIGN_DECL(4);
|
||||
/* 0x1 */ u8 field_0x1;
|
||||
};
|
||||
|
||||
@@ -179,7 +180,7 @@ struct J3DTevStageInfo {
|
||||
};
|
||||
|
||||
struct J3DIndTevStageInfo {
|
||||
/* 0x0 */ u8 mIndStage __attribute__((aligned(4)));
|
||||
/* 0x0 */ u8 mIndStage ALIGN_DECL(4);
|
||||
/* 0x1 */ u8 mIndFormat;
|
||||
/* 0x2 */ u8 mBiasSel;
|
||||
/* 0x3 */ u8 mMtxSel;
|
||||
@@ -191,7 +192,7 @@ struct J3DIndTevStageInfo {
|
||||
};
|
||||
|
||||
struct J3DTexCoordInfo {
|
||||
/* 0x0 */ u8 mTexGenType __attribute__((aligned(4)));
|
||||
/* 0x0 */ u8 mTexGenType ALIGN_DECL(4);
|
||||
/* 0x1 */ u8 mTexGenSrc;
|
||||
/* 0x2 */ u8 mTexGenMtx;
|
||||
};
|
||||
@@ -216,7 +217,7 @@ struct J3DBlendInfo {
|
||||
};
|
||||
|
||||
struct J3DTevOrderInfo {
|
||||
/* 0x0 */ u8 mTexCoord __attribute__((aligned(2)));
|
||||
/* 0x0 */ u8 mTexCoord ALIGN_DECL(2);
|
||||
/* 0x1 */ u8 mTexMap;
|
||||
/* 0x2 */ u8 mColorChan;
|
||||
};
|
||||
|
||||
@@ -3,6 +3,7 @@
|
||||
|
||||
#include <dolphin/os/OSMessage.h>
|
||||
#include <dolphin/os/OSThread.h>
|
||||
#include "global.h"
|
||||
|
||||
class JKRSolidHeap;
|
||||
|
||||
@@ -15,7 +16,7 @@ namespace JASystem {
|
||||
void start(JKRSolidHeap*, u32, u32);
|
||||
|
||||
extern OSThread sAudioThread;
|
||||
extern u8 saAudioStack[4096] __attribute__((aligned(32)));
|
||||
extern u8 saAudioStack[4096] ALIGN_DECL(32);
|
||||
extern OSMessageQueue sAudioprocMQ;
|
||||
extern OSMessage saAudioMsgBuf[16];
|
||||
extern u32 sAudioprocMQInit;
|
||||
|
||||
@@ -2,14 +2,15 @@
|
||||
#define JASDRIVERTABLES_H
|
||||
|
||||
#include "dolphin/types.h"
|
||||
#include "global.h"
|
||||
|
||||
namespace JASystem {
|
||||
namespace Driver {
|
||||
extern f32 C5BASE_PITCHTABLE[];
|
||||
}
|
||||
namespace DSPInterface {
|
||||
extern u16 DSPADPCM_FILTER[] __attribute__((aligned(32)));
|
||||
extern u16 DSPRES_FILTER[] __attribute__((aligned(32)));
|
||||
extern u16 DSPADPCM_FILTER[] ALIGN_DECL(32);
|
||||
extern u16 DSPRES_FILTER[] ALIGN_DECL(32);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
#ifndef JUTFONTDATA_ASCFONT_FIX12_H
|
||||
#define JUTFONTDATA_ASCFONT_FIX12_H
|
||||
|
||||
#include "dolphin/types.h"
|
||||
#include "global.h"
|
||||
|
||||
extern const u8 JUTResFONT_Ascfont_fix12[] __attribute__((aligned(32)));
|
||||
extern const u8 JUTResFONT_Ascfont_fix12[] ALIGN_DECL(32);
|
||||
|
||||
#endif /* JUTFONTDATA_ASCFONT_FIX12_H */
|
||||
|
||||
Reference in New Issue
Block a user