X-Git-Url: http://git.bitcoin.ninja/index.cgi?p=ldk-c-bindings;a=blobdiff_plain;f=genbindings.sh;fp=genbindings.sh;h=f1058161f9c9cf232af1c17c40df20e57af122a8;hp=c5025982dc36a15704da88bbd69580ee1bcc2d49;hb=5ed40760d7e99198848633f5ea3dbb60871591e7;hpb=3e06be96893dc608b6de44f2041869873b56e41d diff --git a/genbindings.sh b/genbindings.sh index c502598..f105816 100755 --- a/genbindings.sh +++ b/genbindings.sh @@ -232,7 +232,7 @@ if is_gnu_sed; then sed -i 's/typedef LDKnative.*Import.*LDKnative.*;//g' include/lightning.h # UnsafeCell is `repr(transparent)` so should be ignored here - sed -i 's/LDKUnsafeCell<\(.*\)> /\1 /g' include/lightning.h + sed -i 's/LDKUnsafeCell<\(.*\)> /struct \1 /g' include/lightning.h # stdlib.h doesn't exist in clang's wasm sysroot, and cbindgen # doesn't actually use it anyway, so drop the import. @@ -242,7 +242,7 @@ else sed -i '' 's/typedef LDKnative.*Import.*LDKnative.*;//g' include/lightning.h # UnsafeCell is `repr(transparent)` so should be ignored by cbindgen - sed -i '' 's/LDKUnsafeCell<\(.*\)> /\1 /g' include/lightning.h + sed -i '' 's/LDKUnsafeCell<\(.*\)> /struct \1 /g' include/lightning.h # stdlib.h doesn't exist in clang's wasm sysroot, and cbindgen # doesn't actually use it anyway, so drop the import.