mirror of
https://github.com/encounter/tp.git
synced 2026-07-11 06:18:46 -07:00
MSL_C header cleanup (#2988)
* msl_c header cleanup * math header cleanup * fix rest of shieldD configs * cleanup cflag configs a bit * fix shield build
This commit is contained in:
@@ -1,6 +1,9 @@
|
||||
#ifndef _DOLPHIN_AR_H_
|
||||
#define _DOLPHIN_AR_H_
|
||||
|
||||
#ifdef __REVOLUTION_SDK__
|
||||
#include <revolution/aralt.h>
|
||||
#else
|
||||
#include <dolphin/types.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
@@ -64,8 +67,12 @@ void ARQSetChunkSize(u32 size);
|
||||
u32 ARQGetChunkSize(void);
|
||||
BOOL ARQCheckInit(void);
|
||||
|
||||
u16 __ARGetInterruptStatus(void);
|
||||
void __ARClearInterrupt(void);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif
|
||||
#endif
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
#ifndef _DOLPHIN_OS_H_
|
||||
#define _DOLPHIN_OS_H_
|
||||
|
||||
#include <stdio.h>
|
||||
#include <cstdio.h>
|
||||
|
||||
#ifdef __REVOLUTION_SDK__
|
||||
#include <revolution/os.h>
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
#pragma cplusplus on
|
||||
// fake MSL_C math for sdk specifically since it differs from game MSL_C math
|
||||
|
||||
extern inline float sqrtf(float x) {
|
||||
static const double _half=.5;
|
||||
@@ -46,6 +46,10 @@ extern inline float fabsf(float x) {
|
||||
}
|
||||
|
||||
extern float cosf(float);
|
||||
extern float sinf(float);
|
||||
extern float tanf(float);
|
||||
extern float acosf(float);
|
||||
|
||||
extern inline float cos(float x) {
|
||||
return cosf(x);
|
||||
}
|
||||
@@ -62,5 +66,3 @@ inline float floor(float x) {
|
||||
// x < 0 -> int conversion of x above rounded toward zero(so decrement)
|
||||
return (float)i;
|
||||
}
|
||||
|
||||
#pragma cplusplus reset
|
||||
@@ -82,7 +82,7 @@ typedef unsigned int uint;
|
||||
#define __REGISTER
|
||||
#endif
|
||||
|
||||
#include <stddef.h>
|
||||
#include <cstddef.h>
|
||||
|
||||
#endif
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user