天天看点

qt根据不同的操作系统引用不同的库文件

#ifdef Q_OS_WIN32 // win
    #include <synchapi.h>
#else
    #include <unistd.h>
#endif