compile fixes for mingw32.
This commit is contained in:
@@ -49,7 +49,7 @@ void tstart ( void )
|
||||
void tend ( void )
|
||||
{
|
||||
}
|
||||
double tval()
|
||||
double tval( void )
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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 ));
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
@@ -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 ));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user