Skip to content

Commit b8d2daf

Browse files
committed
Keep Windows platform headers in dependency order
1 parent 669e0d5 commit b8d2daf

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

‎src/utils/serial_port_info.cpp‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,10 @@
55
#include "serial_port_info.h"
66

77
#ifdef _WIN32
8+
#include <windows.h>
9+
810
#include <cfgmgr32.h>
911
#include <setupapi.h>
10-
#include <windows.h>
1112
#elif defined(__APPLE__)
1213
#include <TargetConditionals.h>
1314
#if TARGET_OS_OSX
@@ -303,7 +304,7 @@ static int enumerate_native (std::vector<SerialPortInfo> &ports)
303304
return serial_port_info::enumerate_linux (ports, "/sys/class/tty", "/dev");
304305
}
305306
#else
306-
static int enumerate_native (std::vector<SerialPortInfo> &ports)
307+
static int enumerate_native (std::vector<SerialPortInfo> &)
307308
{
308309
return SerialExitCodes::NO_SYSTEM_HEADERS_FOUND_ERROR;
309310
}

0 commit comments

Comments
 (0)