mirror of
https://github.com/wjwwood/serial.git
synced 2026-01-22 11:44:53 +08:00
Revert c++11 feature for better backward compatibility.
This commit is contained in:
parent
46802a9b3c
commit
e16f43b1e4
@ -24,7 +24,7 @@ static const DWORD hardware_id_max_length = 256;
|
||||
vector<PortInfo>
|
||||
serial::list_ports()
|
||||
{
|
||||
decltype( serial::list_ports() ) devices_found;
|
||||
vector<PortInfo> devices_found;
|
||||
|
||||
HDEVINFO device_info_set = SetupDiGetClassDevs(
|
||||
(const GUID *) &GUID_DEVCLASS_PORTS,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user