strtof fallback

This commit is contained in:
Glenn Maynard
2004-08-10 19:12:03 +00:00
parent 5929cf4e49
commit 3b6a5e9957
+4
View File
@@ -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