mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
include <pthread> on all BSDs
This commit is contained in:
parent
b06cfd702d
commit
3cf8e18cf6
@ -189,19 +189,11 @@ fn (v mut V) compile() {
|
|||||||
#include <inttypes.h> // int64_t etc
|
#include <inttypes.h> // int64_t etc
|
||||||
|
|
||||||
|
|
||||||
#if defined(__linux__) || defined(__OpenBSD__)
|
|
||||||
#include <pthread.h>
|
|
||||||
#endif
|
|
||||||
|
|
||||||
|
|
||||||
#ifdef __APPLE__
|
|
||||||
#include <pthread.h>
|
|
||||||
#endif
|
|
||||||
|
|
||||||
|
|
||||||
#ifdef _WIN32
|
#ifdef _WIN32
|
||||||
#include <windows.h>
|
#include <windows.h>
|
||||||
//#include <WinSock2.h>
|
//#include <WinSock2.h>
|
||||||
|
#else
|
||||||
|
#include <pthread.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
//================================== TYPEDEFS ================================*/
|
//================================== TYPEDEFS ================================*/
|
||||||
|
Loading…
Reference in New Issue
Block a user