File tree Expand file tree Collapse file tree 7 files changed +11
-11
lines changed
Expand file tree Collapse file tree 7 files changed +11
-11
lines changed Original file line number Diff line number Diff line change 2525#define DECLTYPE (x ) __decltype__(x)
2626
2727// https://github.com/DarkRTA/rb3/blob/235050f88a263fec0387b7c618dda76a8bb24d2c/src/sdk/RVL_SDK/revolution/os/OSUtils.h#L13-L17
28- #if defined(__MWERKS__ ) && !defined(__INTELLISENSE__ )
28+ #if defined(__CWCC__ ) && !defined(__INTELLISENSE__ )
2929#define AT_ADDRESS (addr ) : (addr)
3030#else
3131#define AT_ADDRESS (addr )
Original file line number Diff line number Diff line change @@ -230,7 +230,7 @@ unsigned int** gt2StringToIPs(const char* string) {
230230** INTERNAL FUNCTIONS **
231231***********************/
232232
233- #ifdef __MWERKS__ // CodeWarrior will warn if not prototyped
233+ #ifdef __CWCC__ // CodeWarrior will warn if not prototyped
234234void gti2MessageCheck (const GT2Byte * * message , int * len );
235235#endif
236236
Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ INCLUDES
1111extern "C" {
1212#endif
1313
14- #ifdef __MWERKS__ // Codewarrior requires function prototypes
14+ #ifdef __CWCC__ // Codewarrior requires function prototypes
1515qr2_error_t qr2_initW (/*[out]*/ qr2_t * qrec , const unsigned short * ip ,
1616 int baseport , const unsigned short * gamename ,
1717 const unsigned short * secret_key , int ispublic ,
Original file line number Diff line number Diff line change 44#include "../common/gsDebug.h"
55#include "../common/gsStringUtil.h"
66
7- #ifdef __MWERKS__ // CodeWarrior requires prototypes
7+ #ifdef __CWCC__ // CodeWarrior requires prototypes
88void qr2_register_keyW (int keyid , const unsigned short * key );
99void qr2_register_keyA (int keyid , const char * key );
1010#endif
Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ extern void __OSCacheInit(void);
1313
1414__declspec(section ".init" ) asm void __init_hardware () {
1515 // clang-format off
16- #ifdef __MWERKS__
16+ #ifdef __CWCC__
1717 nofralloc ;
1818 mfmsr r0 ;
1919 ori r0 , r0 , 0x2000 ;
@@ -30,7 +30,7 @@ __declspec(section ".init") asm void __init_hardware() {
3030
3131__declspec(section ".init" ) asm void __flush_cache () {
3232 // clang-format off
33- #ifdef __MWERKS__
33+ #ifdef __CWCC__
3434 nofralloc ;
3535 lis r5 , 0xffff ;
3636 ori r5 , r5 , 0xfff1 ;
Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ static u32 __OSPADButton AT_ADDRESS(0x800030e4);
2121// PAL: 0x80006068..0x80006090
2222__declspec(section ".init" ) asm void __check_pad3 () {
2323 // clang-format off
24- #ifdef __MWERKS__
24+ #ifdef __CWCC__
2525 nofralloc ;
2626 lis r3 , __OSPADButton @ha ;
2727 lhz r0 , __OSPADButton @l (r3 );
@@ -49,7 +49,7 @@ __declspec(section ".init") u8 __get_debug_bba() { return __debug_bba; }
4949// PAL: 0x800060a4..0x80006210
5050__declspec(section ".init" ) asm void __start () {
5151 // clang-format off
52- #ifdef __MWERKS__
52+ #ifdef __CWCC__
5353 nofralloc ;
5454 bl __init_registers ;
5555 bl __init_hardware ;
@@ -157,7 +157,7 @@ __declspec(section ".init") asm void __start() {
157157}
158158
159159__declspec(section ".init" ) asm void __init_registers (void ) {
160- #ifdef __MWERKS__
160+ #ifdef __CWCC__
161161 li r0 , 0x0 ;
162162 li r3 , 0x0 ;
163163 li r4 , 0x0 ;
@@ -201,7 +201,7 @@ __declspec(section ".init") asm void __init_registers(void) {
201201// PAL: 0x800062a0..0x80006348
202202__declspec(section ".init" ) asm void __init_data () {
203203 // clang-format off
204- #ifdef __MWERKS__
204+ #ifdef __CWCC__
205205 nofralloc ;
206206 stwu r1 , -0x20 (r1 );
207207 mflr r0 ;
Original file line number Diff line number Diff line change 1- #ifndef __INTELLISENSE__
1+ #ifdef __CWCC__
22
33// PAL: 0x8002156C
44extern void _savegpr_14 (void );
You can’t perform that action at this time.
0 commit comments