summaryrefslogtreecommitdiff
path: root/src/Z2AudioLib/Z2SoundObject.cpp
diff options
context:
space:
mode:
authorkipcode66 <kipcode66@gmail.com>2026-01-12 17:48:25 -0500
committerGitHub <noreply@github.com>2026-01-13 00:48:25 +0200
commitdd03bf861fdc92109c57d58cc7436066a8a02430 (patch)
treecd4044941bb8f661d3b5c018ed94cb18ff650cc6 /src/Z2AudioLib/Z2SoundObject.cpp
parent53aaed17c0a635c8f5542c2b2aeaa65f63c734c4 (diff)
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
Diffstat (limited to 'src/Z2AudioLib/Z2SoundObject.cpp')
-rw-r--r--src/Z2AudioLib/Z2SoundObject.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/Z2AudioLib/Z2SoundObject.cpp b/src/Z2AudioLib/Z2SoundObject.cpp
index bc92476846..d34d0dea19 100644
--- a/src/Z2AudioLib/Z2SoundObject.cpp
+++ b/src/Z2AudioLib/Z2SoundObject.cpp
@@ -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