#ifndef IVVERSION_H #define IVVERSION_H #ifndef Q_OS_WIN #include "ivversion_def.h" //Please use common.pri, If you don't want use ivversion_def.h can comment this line. #endif #include #ifndef IVVERSION #define IVVERSION "1.1.0-develop" #endif //#include //#include //#include //#include //#include //std::string getgitversion() //{ // std::string strrtn; // bool bfileok = false; // char strpath[256]; // char strtem[256]; // char strbase[256]; // snprintf(strbase,256,"./.git/refs/heads/master"); // snprintf(strtem,256,"./."); // int i; // for(i=0;i<5;i++) // { // strncpy(strpath,strtem,256); // int j; // for(j=0;j0)strrtn.append(strdata,f.gcount()); // // std::cout<<"file ok"<<"size is "<