https://github.com/Kitware/CMake
Revision 61c60b239c0ddc5eb975bb9cc3721b792a2aa18f authored by Stephen Kelly on 12 March 2014, 15:58:03 UTC, committed by Stephen Kelly on 17 March 2014, 13:15:14 UTC
Override the QT_QTMAIN_LIBRARY cache variable with a regular variable in the Qt 5 configuration. This avoids linking with the Qt 4 version of the WinMain library.
1 parent 7534967
Tip revision: 61c60b239c0ddc5eb975bb9cc3721b792a2aa18f authored by Stephen Kelly on 12 March 2014, 15:58:03 UTC
QtDialog: Avoid linking to Qt4 WinMain when using Qt 5.
QtDialog: Avoid linking to Qt4 WinMain when using Qt 5.
Tip revision: 61c60b2
CheckFunctionExists.c
#ifdef CHECK_FUNCTION_EXISTS
char CHECK_FUNCTION_EXISTS();
#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 */
Computing file changes ...