Skip to content

Commit 48864bd

Browse files
author
A Hedge Witch
committed
fix Windows build: fix #149 and fix #163
1 parent 51df16d commit 48864bd

File tree

4 files changed

+7
-6
lines changed

4 files changed

+7
-6
lines changed

buildscript/winsetup.bat

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
call buildscript\pushp c:\ocaml\bin
2-
call buildscript\pushp c:\ocaml
1+
call buildscript\pushp c:\ocamlms64\bin
2+
call buildscript\pushp c:\ocamlms64
33
call buildscript\pushp build\release\host\lib\rtl
44
call buildscript\pushp build\release\host\bin
5-
set ocamllib=c:\ocaml\lib
5+
set ocamllib=c:\ocamlms64\lib\ocaml
66
set FLX_MIN_MEM=1005
77
set PWD=%cd%

src/packages/async.fdoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ static ::flx::gc::generic::offset_data_t const async_sched_offset_data = { 1, as
124124
// ***************************************************
125125

126126
thread_kind_t async_sched::get_thread_kind() const {
127-
thread_data->thread_kind;
127+
return thread_data->thread_kind;
128128
}
129129

130130
// ***************************************************

src/packages/rtl-pthread-impl.fdoc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -397,6 +397,7 @@ DWORD WINAPI flx_pthread_start_wrapper(LPVOID e)
397397
{
398398
void *stack_base = get_stack_pointer();
399399
tstart_t *ehd = (tstart_t*)e;
400+
thread_kind_t k = ehd->thread_kind;
400401
thread_control_base_t *tc = ehd -> tc;
401402
if(tc == 0)
402403
{
@@ -536,7 +537,7 @@ flx_thread_t::init(void (*fn)(void*), void *lParam, thread_control_base_t *tc)
536537
DWORD thread_id = 0;
537538
thr= (HANDLE)CreateThread(NULL, 0,
538539
(LPTHREAD_START_ROUTINE)nonflx_pthread_start_wrapper,
539-
new tstart_t(fn,lParam, tc,NULL,NULL,NULL), 0,
540+
new tstart_t(fn,lParam, tc,NULL,NULL,NULL,joinable), 0,
540541
&thread_id
541542
);
542543

src/re2/re2/util/util.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ using std::tr1::unordered_set;
5050
#else
5151

5252
#include <unordered_set>
53-
#if defined(WIN32) || defined(OS_ANDROID)
53+
#if defined(OS_ANDROID)
5454
using std::tr1::unordered_set;
5555
#else
5656
using std::unordered_set;

0 commit comments

Comments
 (0)