summaryrefslogtreecommitdiff
path: root/src/portal/cpy
diff options
context:
space:
mode:
Diffstat (limited to 'src/portal/cpy')
-rw-r--r--src/portal/cpy/str.pxd4
-rw-r--r--src/portal/cpy/types.pxd4
2 files changed, 5 insertions, 3 deletions
diff --git a/src/portal/cpy/str.pxd b/src/portal/cpy/str.pxd
index 3ef1e90..77cd093 100644
--- a/src/portal/cpy/str.pxd
+++ b/src/portal/cpy/str.pxd
@@ -2,7 +2,7 @@ include "types.pxd"
cdef extern from "<al/str.h>":
ctypedef struct str:
- u32 len
+ u32 length
u32 alloc
char *data
@@ -11,7 +11,7 @@ cdef extern from "<al/str.h>":
cdef extern from "<al/wstr.h>":
ctypedef struct wstr:
- u32 len
+ u32 length
u32 alloc
wchar_t *data
diff --git a/src/portal/cpy/types.pxd b/src/portal/cpy/types.pxd
index 09cb224..d630afa 100644
--- a/src/portal/cpy/types.pxd
+++ b/src/portal/cpy/types.pxd
@@ -8,7 +8,9 @@ from libc.stdint cimport uint64_t
from libc.stdint cimport int64_t
from libc.stddef cimport wchar_t
-ctypedef bint bool
+from libcpp cimport bool
+cdef extern from "<stdbool.h>":
+ pass
ctypedef uint8_t u8
ctypedef int8_t s8