Skip to content

Commit

Permalink
add workaround to have ssize_t in msvc
Browse files Browse the repository at this point in the history
  • Loading branch information
noah1510 committed Dec 14, 2023
1 parent c57c65b commit bc313b3
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions include/rs232_native.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,11 @@ namespace sakurajin {
#endif
};

#if defined(_MSC_VER)
#include <BaseTsd.h>
typedef SSIZE_T ssize_t;
#endif

RS232_EXPORT_MACRO std::vector<std::string> getAvailablePorts() noexcept;
RS232_EXPORT_MACRO std::vector<std::string> getMatchingPorts(const std::regex& pattern) noexcept;

Expand Down

0 comments on commit bc313b3

Please sign in to comment.