1
0
mirror of https://github.com/vcmi/vcmi.git synced 2024-12-24 22:14:36 +02:00

gcc fixes

This commit is contained in:
Vadim Glazunov 2008-09-09 21:10:24 +00:00
parent b256f0ff43
commit 387f8230cf
5 changed files with 6 additions and 5 deletions

View File

@ -168,7 +168,7 @@ public:
#ifndef __GNUC__
friend int _tmain(int argc, _TCHAR* argv[]);
#else
friend int main(int argc, _TCHAR* argv[]);
friend int main(int argc, char** argv);
#endif
};
#endif //CCALLBACK_H

View File

@ -12,7 +12,7 @@ public:
#ifndef __GNUC__
friend int _tmain(int argc, _TCHAR* argv[]);
#else
friend int main(int argc, _TCHAR* argv[]);
friend int main(int argc, char **argv);
#endif
};

View File

@ -48,7 +48,7 @@ TTF_Font * TNRB16, *TNR, *GEOR13, *GEORXX, *GEORM, *GEOR16;
#ifndef __GNUC__
int _tmain(int argc, _TCHAR* argv[])
#else
int main(int argc, _TCHAR* argv[])
int main(int argc, char** argv)
#endif
{
int port;

View File

@ -39,6 +39,7 @@ void CConnection::init()
CConnection::CConnection(std::string host, std::string port, std::string Name, std::ostream & Out)
:io_service(new asio::io_service), name(Name), out(Out)//, send(this), rec(this)
{
int i;
boost::system::error_code error = asio::error::host_not_found;
socket = new tcp::socket(*io_service);
tcp::resolver resolver(*io_service);
@ -56,7 +57,7 @@ CConnection::CConnection(std::string host, std::string port, std::string Name, s
std::cout<< "Critical problem: No endpoints found!" << std::endl;
goto connerror1;
}
int i=0;
i=0;
while(pom != end)
{
std::cout << "\t" << i << ": " << (boost::asio::ip::tcp::endpoint&)*pom << std::endl;

View File

@ -126,7 +126,7 @@ void CVCMIServer::start()
#ifndef __GNUC__
int _tmain(int argc, _TCHAR* argv[])
#else
int main(int argc, _TCHAR* argv[])
int main(int argc, char** argv)
#endif
{
if(argc > 1)