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>
|
#include <time.h>
|
||||||
|
|
||||||
#ifdef WIN32 /* Put win32 includes here */
|
#ifdef WIN32 /* Put win32 includes here */
|
||||||
|
#ifndef WINVER
|
||||||
//Windows XP
|
//Windows XP
|
||||||
#define WINVER 0x0501
|
#define WINVER 0x0501
|
||||||
|
#endif
|
||||||
#include <winsock2.h>
|
#include <winsock2.h>
|
||||||
#include <windows.h>
|
#include <windows.h>
|
||||||
#include <ws2tcpip.h>
|
#include <ws2tcpip.h>
|
||||||
|
|
|
@ -1,6 +1,9 @@
|
||||||
// Hi-resolution timer
|
// Hi-resolution timer
|
||||||
#ifdef WIN32
|
#ifdef WIN32
|
||||||
|
#ifndef WINVER
|
||||||
|
//Windows XP
|
||||||
|
#define WINVER 0x0501
|
||||||
|
#endif
|
||||||
#include <windows.h>
|
#include <windows.h>
|
||||||
double get_time()
|
double get_time()
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue
Block a user