Changed inline to __inline when building with MSVC

See #3193.