Some C99 and GNU constructs aren't compatible with the MS C compiler. Code should be harmonized. (discussion started at https://github.com/bp-kelley/freesasa/commit/126df0aaaa4c38668acd01b40eff16d1131bb1d1) Known issues - [x] Remove variable length arrays - [x] Redefine `restrict` keyword if Microsoft compiler detected - [x] Optional header `unistd.h` in `lexer.c` can be excluded - [x] Redefine `inline` keyword if Microsoft compiler detected - [x] Redefine `__func__` if not defined - [x] Add `_USE_MATH_DEFINES` - [x] Remove GNU getline dependency Other tasks - [ ] Look into CI tools for Windows (AppVeyor) Work is done in branch `windows` (https://github.com/mittinatten/freesasa/tree/windows)
Some C99 and GNU constructs aren't compatible with the MS C compiler. Code should be harmonized. (discussion started at bp-kelley@126df0a)
Known issues
restrictkeyword if Microsoft compiler detectedunistd.hinlexer.ccan be excludedinlinekeyword if Microsoft compiler detected__func__if not defined_USE_MATH_DEFINESOther tasks
Work is done in branch
windows(https://github.com/mittinatten/freesasa/tree/windows)