CMake/Modules/CheckFunctionExists.c

16 lines
249 B
C
Raw Normal View History

#ifdef CHECK_FUNCTION_EXISTS
char CHECK_FUNCTION_EXISTS();
int main()
{
CHECK_FUNCTION_EXISTS();
return 0;
}
#else /* CHECK_FUNCTION_EXISTS */
# error "CHECK_FUNCTION_EXISTS has to specify the function"
#endif /* CHECK_FUNCTION_EXISTS */