diff options
author | John Langford <jl@hunch.net> | 2013-01-24 07:59:42 +0400 |
---|---|---|
committer | John Langford <jl@hunch.net> | 2013-01-24 07:59:42 +0400 |
commit | 7ac3b65b6eb7e837c234aa975389c32609ea5afe (patch) | |
tree | ca2224e3f5dd90d1af20c47e8ff0bb0662015bfe /vowpalwabbit/parse_primitives.h | |
parent | 66f5c2bbf17819b6a68267ce39f2de911fc18e1e (diff) |
bug fixes from Nick for windows compile
Diffstat (limited to 'vowpalwabbit/parse_primitives.h')
-rw-r--r-- | vowpalwabbit/parse_primitives.h | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/vowpalwabbit/parse_primitives.h b/vowpalwabbit/parse_primitives.h index 3054cc4e..bc062ed7 100644 --- a/vowpalwabbit/parse_primitives.h +++ b/vowpalwabbit/parse_primitives.h @@ -13,13 +13,14 @@ license as described in the file LICENSE. #include "io.h" #include "example.h" -#ifndef _WIN32 -typedef pthread_mutex_t MUTEX; -typedef pthread_cond_t CV; -#else +#ifdef _WIN32 +#include <WinSock2.h> #include <Windows.h> typedef CRITICAL_SECTION MUTEX; typedef CONDITION_VARIABLE CV; +#else +typedef pthread_mutex_t MUTEX; +typedef pthread_cond_t CV; #endif struct substring { |