From 3b6a5e9957dad8a77f137176ee12c0fcdea9473b Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Tue, 10 Aug 2004 19:12:03 +0000 Subject: [PATCH] strtof fallback --- stepmania/src/global.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/stepmania/src/global.h b/stepmania/src/global.h index a606c74082..7e0a61b3ea 100644 --- a/stepmania/src/global.h +++ b/stepmania/src/global.h @@ -169,6 +169,10 @@ inline float truncf( float f ) { return float(int(f)); }; inline float roundf( float f ) { if(f < 0) return truncf(f-0.5f); return truncf(f+0.5f); }; #endif +#ifdef NEED_STRTOF +inline float strtof( const char *s, char **se ) { return (float) strtod( s, se ); } +#endif + /* Don't include our own headers here, since they tend to change often. */ #endif