cmake: detect availability of powf()

This commit is contained in:
Hugues Delorme 2015-03-26 12:04:17 +01:00
parent b49357024b
commit ded90344f4
2 changed files with 4 additions and 0 deletions

View File

@ -47,6 +47,9 @@ if(NOT BUILD_STRICT_C90)
# Have strtof() ?
check_function_exists(strtof GMIO_HAVE_STRTOF_FUNC)
# Have powf() ?
check_function_exists(powf GMIO_HAVE_POWF_FUNC)
# Have <stdbool.h> ?
check_include_files(stdbool.h GMIO_HAVE_STDBOOL_H)
endif()

View File

@ -21,6 +21,7 @@
#cmakedefine GMIO_HAVE_STDINT_H
#cmakedefine GMIO_HAVE_STDBOOL_H
#cmakedefine GMIO_HAVE_STRTOF_FUNC
#cmakedefine GMIO_HAVE_POWF_FUNC
#cmakedefine GMIO_HAVE_GCC_BUILTIN_BSWAP16_FUNC
#cmakedefine GMIO_HAVE_GCC_BUILTIN_BSWAP32_FUNC