fixed build errors on windows

This commit is contained in:
Antonio Montes 2013-10-19 11:14:03 -07:00
parent 368231b4f8
commit 3df81b07f3
2 changed files with 7 additions and 0 deletions

View File

@ -8,6 +8,9 @@
//Windows XP
#define WINVER 0x0501
#endif
#if (_WIN32_WINNT >= _WIN32_WINNT_WINXP)
#include <winsock2.h>
#endif
#include <windows.h>
double get_time()
{

View File

@ -21,6 +21,10 @@
*
*/
#if (_WIN32_WINNT >= _WIN32_WINNT_WINXP)
#define _WIN32_WINNT 0x501
#endif
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif