Revision 8e8eeb73ab338fc6a6e2b6af9da3dc6f09cc26d1 authored by Brad King on 06 February 2017, 15:29:35 UTC, committed by CMake Topic Stage on 06 February 2017, 15:29:35 UTC
a2a73935 FindMPI: Remove leading spaces from flags
93f29be2 FindMPI: Reset MPI_INCLUDE_PATH_WORK before use

2 parent s a00cca9 + a2a7393
Raw File
CheckFunctionExists.c
#ifdef CHECK_FUNCTION_EXISTS

#ifdef __cplusplus
extern "C"
#endif
  char
  CHECK_FUNCTION_EXISTS(void);
#ifdef __CLASSIC_C__
int main()
{
  int ac;
  char* av[];
#else
int main(int ac, char* av[])
{
#endif
  CHECK_FUNCTION_EXISTS();
  if (ac > 1000) {
    return *av[0];
  }
  return 0;
}

#else /* CHECK_FUNCTION_EXISTS */

#error "CHECK_FUNCTION_EXISTS has to specify the function"

#endif /* CHECK_FUNCTION_EXISTS */
back to top