CMake/Modules/CheckFunctionExists.c

21 lines
328 B
C
Raw Normal View History

#ifdef CHECK_FUNCTION_EXISTS
char CHECK_FUNCTION_EXISTS();
2004-04-14 23:56:39 +04:00
int main(int ac, char*av[])
{
2004-04-14 23:56:39 +04:00
int ret = 0;
CHECK_FUNCTION_EXISTS();
2004-04-14 23:56:39 +04:00
if(ac > 100)
{
ret = *av[0];
}
return ret;
}
#else /* CHECK_FUNCTION_EXISTS */
# error "CHECK_FUNCTION_EXISTS has to specify the function"
#endif /* CHECK_FUNCTION_EXISTS */