Skip to content

Commit

Permalink
fix for msvc
Browse files Browse the repository at this point in the history
  • Loading branch information
nguyenpham committed Jul 20, 2019
1 parent 4b907fb commit 29f8a1f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 8 deletions.
1 change: 0 additions & 1 deletion src/game/engine.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,6 @@ bool Engine::kickStart()
pThread = nullptr;
});

native_handle = processThread.native_handle();
pThread = &processThread;
processThread.detach();
return true;
Expand Down
10 changes: 3 additions & 7 deletions src/game/engine.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@
*/


#ifndef engineplayer_hpp
#define engineplayer_hpp
#ifndef engine_h
#define engine_h

#include <vector>
#include <set>
Expand Down Expand Up @@ -121,14 +121,10 @@ namespace banksia {
TinyProcessLib::Process::id_type processId = 0;
TinyProcessLib::Process* process = nullptr;
std::thread* pThread = nullptr;

#ifndef _WIN32
std::thread::native_handle_type native_handle = 0;
#endif
};


} // namespace banksia

#endif /* engineplayer_hpp */
#endif /* engine_h */

0 comments on commit 29f8a1f

Please sign in to comment.