Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/moses-smt/vowpal_wabbit.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Langford <jl@hunch.net>2013-01-24 07:59:42 +0400
committerJohn Langford <jl@hunch.net>2013-01-24 07:59:42 +0400
commit7ac3b65b6eb7e837c234aa975389c32609ea5afe (patch)
treeca2224e3f5dd90d1af20c47e8ff0bb0662015bfe /vowpalwabbit/parse_primitives.h
parent66f5c2bbf17819b6a68267ce39f2de911fc18e1e (diff)
bug fixes from Nick for windows compile
Diffstat (limited to 'vowpalwabbit/parse_primitives.h')
-rw-r--r--vowpalwabbit/parse_primitives.h9
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 {