mirror of
https://github.com/irungentoo/toxcore.git
synced 2024-03-22 13:30:51 +08:00
Fixed warnings on Windows
This commit is contained in:
parent
c009245118
commit
440871bda1
|
@ -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>
|
||||
|
|
|
@ -1,6 +1,9 @@
|
|||
// Hi-resolution timer
|
||||
#ifdef WIN32
|
||||
|
||||
#ifndef WINVER
|
||||
//Windows XP
|
||||
#define WINVER 0x0501
|
||||
#endif
|
||||
#include <windows.h>
|
||||
double get_time()
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue
Block a user