compile fixes for mingw32.

This commit is contained in:
2010-12-03 16:45:04 +00:00
parent a21c639529
commit 7c86a1a95c
5 changed files with 7 additions and 7 deletions

View File

@@ -49,7 +49,7 @@ void tstart ( void )
void tend ( void )
{
}
double tval()
double tval( void )
{
return 0;
}

View File

@@ -63,7 +63,7 @@ static void itend(void)
{
QueryPerformanceCounter(&_itend);
}
double itval()
double itval(void)
{
return ((double)_itend.QuadPart -
(double)_itstart.QuadPart)/((double)ifreq.QuadPart);

View File

@@ -94,7 +94,7 @@ static void tend ( void )
{
QueryPerformanceCounter ( &liCurrentTime );
}
static double tval()
static double tval( void )
{
return ((double)( (liCurrentTime.QuadPart - liStartTime.QuadPart)* (double)1000.0/(double)liFrequency.QuadPart ));
}

View File

@@ -62,17 +62,17 @@ static int render_height;
#if defined(_WIN32)
static int startup_socket_system()
static int startup_socket_system(void)
{
WSADATA wsa;
return (WSAStartup(MAKEWORD(2,0),&wsa) == 0);
}
static void shutdown_socket_system()
static void shutdown_socket_system(void)
{
WSACleanup();
}
static int select_was_interrupted_by_signal()
static int select_was_interrupted_by_signal(void)
{
return (WSAGetLastError() == WSAEINTR);
}

View File

@@ -100,7 +100,7 @@ static void tend ( void )
{
QueryPerformanceCounter ( &liCurrentTime );
}
static double tval()
static double tval( void )
{
return ((double)( (liCurrentTime.QuadPart - liStartTime.QuadPart)* (double)1000.0/(double)liFrequency.QuadPart ));
}