vimpunk / mio

Cross-platform C++11 header-only library for memory mapped file IO
MIT License
1.71k stars 157 forks source link

Add missing `inline` to `s_2_ws()` to fix ODR violation #74

Closed poconn closed 3 years ago

poconn commented 3 years ago

Hi! :wave:

On Windows, including mmap.hpp from multiple files fails to compile because of multiple definitions of s_2_ws(), this adds the missing inline. (I ran amalgamate.py but it made a bunch of unrelated changes, so I just manually made the change to the single-header file.)

phprus commented 3 years ago

Duplicate of #71

poconn commented 3 years ago

Whoops, sorry about that, thanks!