1
0
mirror of https://github.com/wjwwood/serial.git synced 2026-01-23 04:04:54 +08:00

Revert c++11 feature for better backward compatibility.

This commit is contained in:
Christopher Baker 2014-07-10 23:57:19 -05:00
parent 46802a9b3c
commit e16f43b1e4

View File

@ -24,7 +24,7 @@ static const DWORD hardware_id_max_length = 256;
vector<PortInfo> vector<PortInfo>
serial::list_ports() serial::list_ports()
{ {
decltype( serial::list_ports() ) devices_found; vector<PortInfo> devices_found;
HDEVINFO device_info_set = SetupDiGetClassDevs( HDEVINFO device_info_set = SetupDiGetClassDevs(
(const GUID *) &GUID_DEVCLASS_PORTS, (const GUID *) &GUID_DEVCLASS_PORTS,