Skip to content

Commit b62fba9

Browse files
committed
* beos.cpp: Define PTHREAD_RECURSIVE_MUTEX_INITIALIZER, B_HANGUL and
B_HANGUL_HANJA macros which are dropped in r1beta6.
1 parent 982e3cf commit b62fba9

3 files changed

Lines changed: 20 additions & 1 deletion

File tree

.github/workflows/ci.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -384,7 +384,6 @@ jobs:
384384
with:
385385
usesh: true
386386
prepare: |
387-
# workaround until R1 Beta6 is released.
388387
#yes | pkgman drop-repo HaikuPorts
389388
#pkgman add-repo https://eu.hpkg.haiku-os.org/haikuports/master/$(getarch)/current
390389
(pkgman refresh && pkgman update && pkgman install -y libsdl2_devel gtk3_devel) || echo libsdl2_devel or gtk3_devel is not installed.

ChangeLog

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
2026-08-29 Araki Ken <arakiken@user.sf.net>
22

3+
* beos.cpp: Define PTHREAD_RECURSIVE_MUTEX_INITIALIZER, B_HANGUL and
4+
B_HANGUL_HANJA macros which are dropped in r1beta6.
5+
36
* ui_font_manager.c: ui_get_font() returns a font with size_attr for
47
DRCS charset.
58

uitoolkit/beos/beos.cpp

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,23 @@
2121

2222
#include <pthread.h>
2323

24+
/* Backward compatibility macros for R1 Beta6 or later */
25+
#ifndef PTHREAD_RECURSIVE_MUTEX_INITIALIZER
26+
#ifdef PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP
27+
#define PTHREAD_RECURSIVE_MUTEX_INITIALIZER PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP
28+
#endif
29+
#endif
30+
#ifndef B_HANGUL
31+
#ifdef B_HANGUL_KEY
32+
#define B_HANGUL B_HANGUL_KEY
33+
#endif
34+
#endif
35+
#ifndef B_HANGUL_HANJA
36+
#ifdef B_HANGUL_HANJA_KEY
37+
#define B_HANGUL_HANJA B_HANGUL_HANJA_KEY
38+
#endif
39+
#endif
40+
2441
extern "C" {
2542
#include "ui_window.h"
2643
#include "beos.h"

0 commit comments

Comments
 (0)