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

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

View File

@ -20,6 +20,10 @@
* along with Tox. If not, see <http://www.gnu.org/licenses/>.
*
*/
#if (_WIN32_WINNT >= _WIN32_WINNT_WINXP)
#define _WIN32_WINNT 0x501
#endif
#ifdef HAVE_CONFIG_H
#include "config.h"