mirror of
https://github.com/irungentoo/toxcore.git
synced 2024-03-22 13:30:51 +08:00
fixed build errors on windows
This commit is contained in:
parent
368231b4f8
commit
3df81b07f3
|
@ -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()
|
||||
|
|
|
@ -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"
|
||||
|
|
Loading…
Reference in New Issue
Block a user