Skip to content

Commit ac33528

Browse files
linesightclaude
andcommitted
Drop char16_t platform typedef hack
CEF 147 uses the C++11 built-in char16_t uniformly; declare it for Cython without the per-platform inline C. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
1 parent 89b7c33 commit ac33528

1 file changed

Lines changed: 1 addition & 10 deletions

File tree

src/extern/cef/cef_types.pxd

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -11,17 +11,8 @@ from cef_string cimport cef_string_t
1111
# noinspection PyUnresolvedReferences
1212
from libc.limits cimport UINT_MAX
1313

14-
# char16_t is wchar_t on Windows and unsigned short elsewhere in CEF.
15-
# Using a C macro avoids the deprecated Cython IF statement.
1614
cdef extern from *:
17-
"""
18-
#ifdef _WIN32
19-
typedef wchar_t cef_cython_char16_t;
20-
#else
21-
typedef unsigned short cef_cython_char16_t;
22-
#endif
23-
"""
24-
ctypedef unsigned short char16_t "cef_cython_char16_t"
15+
ctypedef unsigned short char16_t
2516

2617
cdef extern from "include/internal/cef_types.h":
2718

0 commit comments

Comments
 (0)