pjkundert / ezpwd-reed-solomon

Reed-Solomon & BCH encoding and decoding, in C++, Javascript & Python
https://hardconsulting.com/products/13-reed-solomon
Other
99 stars 21 forks source link

No longer compiles with MSVC due to use of ssize_t #17

Open oyvindln opened 1 year ago

oyvindln commented 1 year ago

ssize_t is a POSIX type, so it's not available on MSVC. Not sure whether it can be made conditional to use SSIZE_T from on msvc or if something like ptrdiff_t may be more appropriate.

oyvindln commented 1 year ago

The use of Alternative operatos (or and and instead of || and &&) in the code also requires extra compiler definitions or headers which isn't ideal either.