Skip to content

Commit 70d3016

Browse files
KooShnooem-eight
authored andcommitted
Only use the __CWCC__ macro to test for cwcc
1 parent e0eb52f commit 70d3016

File tree

7 files changed

+11
-11
lines changed

7 files changed

+11
-11
lines changed

include/macros.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
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)

lib/gamespy/gt2/gt2Utility.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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
234234
void gti2MessageCheck(const GT2Byte** message, int* len);
235235
#endif
236236

lib/gamespy/qr2/qr2.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ INCLUDES
1111
extern "C" {
1212
#endif
1313

14-
#ifdef __MWERKS__ // Codewarrior requires function prototypes
14+
#ifdef __CWCC__ // Codewarrior requires function prototypes
1515
qr2_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,

lib/gamespy/qr2/qr2regkeys.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
#include "../common/gsDebug.h"
55
#include "../common/gsStringUtil.h"
66

7-
#ifdef __MWERKS__ // CodeWarrior requires prototypes
7+
#ifdef __CWCC__ // CodeWarrior requires prototypes
88
void qr2_register_keyW(int keyid, const unsigned short* key);
99
void qr2_register_keyA(int keyid, const char* key);
1010
#endif

lib/runtime/__ppc_eabi_init.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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;

lib/runtime/__start.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff 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;

lib/runtime/eabi.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#ifndef __INTELLISENSE__
1+
#ifdef __CWCC__
22

33
// PAL: 0x8002156C
44
extern void _savegpr_14(void);

0 commit comments

Comments
 (0)