Skip to content

Commit

Permalink
Fix compilation
Browse files Browse the repository at this point in the history
  • Loading branch information
RobDangerous committed Apr 9, 2023
1 parent 1a96f15 commit 6735495
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
2 changes: 2 additions & 0 deletions include/hx/Thread.h
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,8 @@
#undef RegisterClass
#endif

#if defined(KORE)

struct HxMutex {
HxMutex() {
kinc_mutex_init(&mutex);
Expand Down
4 changes: 4 additions & 0 deletions src/hx/Thread.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@

#include <kinc/system.h>

#ifdef _WIN32
#include <Windows.h>
#endif

DECLARE_TLS_DATA(class hxThreadInfo, tlsCurrentThread);

// g_threadInfoMutex allows atomic access to g_nextThreadNumber
Expand Down
4 changes: 2 additions & 2 deletions src/hx/libs/regexp/RegExp.cpp
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
#include <hxcpp.h>
#include <string.h>

#define PCRE2_STATIC
#define PCRE2_CODE_UNIT_WIDTH 0
//#define PCRE2_STATIC
//#define PCRE2_CODE_UNIT_WIDTH 0

#include <pcre2.h>

Expand Down

0 comments on commit 6735495

Please sign in to comment.