Fixed warnings on Windows

This commit is contained in:
Maxim Biro 2013-08-11 14:17:02 -04:00
parent c009245118
commit 440871bda1
2 changed files with 6 additions and 1 deletions

View File

@ -31,8 +31,10 @@
#include <time.h>
#ifdef WIN32 /* Put win32 includes here */
#ifndef WINVER
//Windows XP
#define WINVER 0x0501
#endif
#include <winsock2.h>
#include <windows.h>
#include <ws2tcpip.h>

View File

@ -1,6 +1,9 @@
// Hi-resolution timer
#ifdef WIN32
#ifndef WINVER
//Windows XP
#define WINVER 0x0501
#endif
#include <windows.h>
double get_time()
{