stardot / MatrixBrandy

Matrix Brandy BASIC VI for Linux, Windows, MacOSX
http://brandy.matrixnetwork.co.uk/
44 stars 8 forks source link

strlcpy on RISC OS #93

Closed brad0 closed 2 months ago

brad0 commented 2 months ago

Is there a macro or some means of determining the RISC OS version?

I noticed 5.30 did a whole sync of a bunch of stuff from FreeBSD which meant bringing in strlcpy and strlcat.

https://www.riscosopen.org/content/downloads/summary-rom-5-30/tungsten-5-30

soruk42 commented 2 months ago

RISC OS is an awkward one - I build using a cross compiler with the UnixLib module as a dependency (supplied with the cross compiler). So, until strlcpy and friends are included in the cross compiler's libc headers and abstraction library, Matrix Brandy will have to continue using the internal my_strlcpy() and the macro that implements strlcat() using strncat+strlen.

brad0 commented 2 months ago

Ok, cool. Wasn't sure about RISC OS just thought I would mention what I noticed.

soruk42 commented 2 months ago

Closing this as it depends on a toolchain update which rarely sees updates...