mirror of
https://github.com/zeldaret/tp
synced 2026-08-04 01:03:47 -04:00
standard compiler compatibility changes (#3040)
* move math to cmath * replace stdarg to cstdarg * change stdint to stdint.h * minor fixes * change stdio to cstdio * change stdlib to stdlib * renamed ctype to cctype * fix missing argument for UNSET_FLAG
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
#include "Z2AudioLib/Z2Calc.h"
|
||||
#include "JSystem/JMath/random.h"
|
||||
#include <math>
|
||||
#include <cmath>
|
||||
|
||||
f32 Z2Calc::linearTransform(f32 inValue, f32 inMin, f32 inMax, f32 outMin, f32 outMax, bool noClamp) {
|
||||
f32 transformed = outMin + ((inValue - inMin) * ((outMax - outMin) / (inMax - inMin)));
|
||||
|
||||
@@ -9,6 +9,11 @@
|
||||
#include "Z2AudioLib/Z2Audience.h"
|
||||
#include "JSystem/JAudio2/JAUSoundAnimator.h"
|
||||
|
||||
#ifndef __MWERKS__
|
||||
#include <limits>
|
||||
#define FLT_MAX std::numeric_limits<float>::max()
|
||||
#endif
|
||||
|
||||
#if PLATFORM_WII || PLATFORM_SHIELD
|
||||
#include "Z2AudioLib/Z2AudioCS.h"
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user