use 'else' clauses for discussing various OSs
This commit is contained in:
parent
321e36aef3
commit
aae4d09a12
1 changed files with 4 additions and 7 deletions
11
comport.c
11
comport.c
|
|
@ -1374,17 +1374,14 @@ specify a COM port number greater than 9, use the following syntax:
|
||||||
"\\\\.\\COM10". This syntax works for all port numbers and hardware that
|
"\\\\.\\COM10". This syntax works for all port numbers and hardware that
|
||||||
allows COM port numbers to be specified. */
|
allows COM port numbers to be specified. */
|
||||||
serial_device_prefix = "\\\\.\\COM";
|
serial_device_prefix = "\\\\.\\COM";
|
||||||
#endif /* _WIN32 */
|
|
||||||
/* for UNIX, this is a glob pattern for matching devices */
|
/* for UNIX, this is a glob pattern for matching devices */
|
||||||
#ifdef __APPLE__
|
#elif defined __APPLE__
|
||||||
serial_device_prefix = "/dev/tty.*";
|
serial_device_prefix = "/dev/tty.*";
|
||||||
#endif /* __APPLE__ */
|
#elif defined __linux__
|
||||||
#ifdef IRIX
|
|
||||||
serial_device_prefix = "/dev/ttyd*";
|
|
||||||
#endif /* IRIX */
|
|
||||||
#ifdef __linux__
|
|
||||||
/* serial: ttyS? USB-serial: ttyUSB? USB-CDC: ttyACM? */
|
/* serial: ttyS? USB-serial: ttyUSB? USB-CDC: ttyACM? */
|
||||||
serial_device_prefix = "/dev/tty[ASU]*";
|
serial_device_prefix = "/dev/tty[ASU]*";
|
||||||
|
#elif defined IRIX
|
||||||
|
serial_device_prefix = "/dev/ttyd*";
|
||||||
#endif /* __linux__ */
|
#endif /* __linux__ */
|
||||||
|
|
||||||
if(argc > 0) {
|
if(argc > 0) {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue