Remove some now-unused function checks
This commit is contained in:
parent
c4d3444a6d
commit
3b1b029a75
@ -604,8 +604,6 @@ CHECK_SYMBOL_EXISTS(posix_memalign stdlib.h HAVE_POSIX_MEMALIGN)
|
||||
CHECK_SYMBOL_EXISTS(_aligned_malloc malloc.h HAVE__ALIGNED_MALLOC)
|
||||
CHECK_SYMBOL_EXISTS(proc_pidpath libproc.h HAVE_PROC_PIDPATH)
|
||||
CHECK_SYMBOL_EXISTS(lrintf math.h HAVE_LRINTF)
|
||||
CHECK_SYMBOL_EXISTS(modff math.h HAVE_MODFF)
|
||||
CHECK_SYMBOL_EXISTS(log2f math.h HAVE_LOG2F)
|
||||
CHECK_SYMBOL_EXISTS(cbrtf math.h HAVE_CBRTF)
|
||||
CHECK_SYMBOL_EXISTS(copysignf math.h HAVE_COPYSIGNF)
|
||||
|
||||
@ -615,7 +613,6 @@ IF(HAVE_FLOAT_H)
|
||||
ENDIF()
|
||||
|
||||
CHECK_FUNCTION_EXISTS(stat HAVE_STAT)
|
||||
CHECK_FUNCTION_EXISTS(strtof HAVE_STRTOF)
|
||||
CHECK_FUNCTION_EXISTS(strcasecmp HAVE_STRCASECMP)
|
||||
IF(NOT HAVE_STRCASECMP)
|
||||
CHECK_FUNCTION_EXISTS(_stricmp HAVE__STRICMP)
|
||||
|
@ -32,14 +32,6 @@ static const union msvc_inf_hack {
|
||||
#define HUGE_VALF (msvc_inf_union.f)
|
||||
#endif
|
||||
|
||||
#ifndef HAVE_LOG2F
|
||||
static inline float my_log2f(float f)
|
||||
{
|
||||
return logf(f) / logf(2.0f);
|
||||
}
|
||||
#define log2f my_log2f
|
||||
#endif
|
||||
|
||||
#ifndef HAVE_CBRTF
|
||||
static inline float my_cbrtf(float f)
|
||||
{
|
||||
|
@ -92,21 +92,12 @@
|
||||
/* Define if we have the lrintf function */
|
||||
#cmakedefine HAVE_LRINTF
|
||||
|
||||
/* Define if we have the modff function */
|
||||
#cmakedefine HAVE_MODFF
|
||||
|
||||
/* Define if we have the log2f function */
|
||||
#cmakedefine HAVE_LOG2F
|
||||
|
||||
/* Define if we have the cbrtf function */
|
||||
#cmakedefine HAVE_CBRTF
|
||||
|
||||
/* Define if we have the copysignf function */
|
||||
#cmakedefine HAVE_COPYSIGNF
|
||||
|
||||
/* Define if we have the strtof function */
|
||||
#cmakedefine HAVE_STRTOF
|
||||
|
||||
/* Define if we have the strnlen function */
|
||||
#cmakedefine HAVE_STRNLEN
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user