diff --git a/include/rs232_native.hpp b/include/rs232_native.hpp index cacfb23..5a41b4b 100644 --- a/include/rs232_native.hpp +++ b/include/rs232_native.hpp @@ -68,6 +68,11 @@ namespace sakurajin { #endif }; +#if defined(_MSC_VER) + #include + typedef SSIZE_T ssize_t; +#endif + RS232_EXPORT_MACRO std::vector getAvailablePorts() noexcept; RS232_EXPORT_MACRO std::vector getMatchingPorts(const std::regex& pattern) noexcept;