For MacOS only somewhat small must be changed:
Save this as macthread.bmx
And add the following lines in thread.bmx:
Build modules... thats all...
Import "-std=c99" ' <-- here, Import "-lpthread" it does not give... Import "linthread.c" Extern Function CreateThread(threadfunction())="bmx_createthread" EndExtern
Save this as macthread.bmx
And add the following lines in thread.bmx:
?macos macthread.bmx ?
Build modules... thats all...