• Show log

    Commit

  • Hash : 44fa5b19
    Author : Azat Khuzhin
    Date : 2018-04-23T01:50:55

    Fix CheckFunctionExistsEx() cmake macro on win32
    
    For example under mingw64 it could not detect that strtok_r() exists,
    because it checks with:
      void *p = func_name;
    
    And for this you need the function to be defined, so just sync our
    CheckFunctionExistsEx.c with CheckFunctionExists.c from cmake (and later
    we should drop them out) since it does correct things to detech
    functions existence.
    
    Also for WIN32 there is -FIwinsock2.h -FIws2tcpip.h, and I guess that is
    not works for mingw gcc (since -F in gcc is framework, and in windows
    -FI is like -include in gcc). But looks like we do not need them
    already (due to fixed CheckFunctionExistsEx()).
    
    Refs: #605
    (cherry picked from commit accf383e044257ecdef002ea255056a5d15a4811)