Edit

kc3-lang/libevent/cmake/CheckFunctionExistsEx.c

Branch :

  • Show log

    Commit

  • Author : Joakim Söderberg
    Date : 2014-01-21 11:30:27
    Hash : 4e143958
    Message : Change all uses of WIN32 to _WIN32

  • cmake/CheckFunctionExistsEx.c
  • #ifdef CHECK_FUNCTION_EXISTS
    
    #ifndef _WIN32
    char CHECK_FUNCTION_EXISTS();
    #endif
    
    #ifdef __CLASSIC_C__
    int main(){
      int ac;
      char*av[];
    #else
    int main(int ac, char*av[]){
    #endif
    #ifdef _WIN32
      void * p = &CHECK_FUNCTION_EXISTS;
    #else
      CHECK_FUNCTION_EXISTS();
    #endif
      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 */