strtof fallback
This commit is contained in:
@@ -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); };
|
inline float roundf( float f ) { if(f < 0) return truncf(f-0.5f); return truncf(f+0.5f); };
|
||||||
#endif
|
#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. */
|
/* Don't include our own headers here, since they tend to change often. */
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
Reference in New Issue
Block a user