Small Darwin fix in synaser.pas
git-svn-id: https://svn.code.sf.net/p/synalist/code/trunk@188 7c85be65-684b-0410-a082-b2ed4fbef004
This commit is contained in:
parent
564abf85ac
commit
93c88514ef
@ -1,9 +1,9 @@
|
||||
{==============================================================================|
|
||||
| Project : Ararat Synapse | 007.005.005 |
|
||||
| Project : Ararat Synapse | 007.005.006 |
|
||||
|==============================================================================|
|
||||
| Content: Serial port support |
|
||||
|==============================================================================|
|
||||
| Copyright (c)2001-2013, Lukas Gebauer |
|
||||
| Copyright (c)2001-2014, Lukas Gebauer |
|
||||
| All rights reserved. |
|
||||
| |
|
||||
| Redistribution and use in source and binary forms, with or without |
|
||||
@ -33,7 +33,7 @@
|
||||
| DAMAGE. |
|
||||
|==============================================================================|
|
||||
| The Initial Developer of the Original Code is Lukas Gebauer (Czech Republic).|
|
||||
| Portions created by Lukas Gebauer are Copyright (c)2001-2013. |
|
||||
| Portions created by Lukas Gebauer are Copyright (c)2001-2014. |
|
||||
| All Rights Reserved. |
|
||||
|==============================================================================|
|
||||
| Contributor(s): |
|
||||
@ -1942,7 +1942,7 @@ begin
|
||||
SerialCheck(ioctl(FHandle, TCFLSH, TCIOFLUSH));
|
||||
{$ELSE}
|
||||
{$IFDEF DARWIN}
|
||||
SerialCheck(fpioctl(FHandle, TCIOflush, TCIOFLUSH));
|
||||
SerialCheck(fpioctl(FHandle, TCIOflush, Pointer(TCIOFLUSH)));
|
||||
{$ELSE}
|
||||
SerialCheck(fpioctl(FHandle, {$IFDEF FreeBSD}TCIOFLUSH{$ELSE}TCFLSH{$ENDIF}, Pointer(PtrInt(TCIOFLUSH))));
|
||||
{$ENDIF}
|
||||
|
Loading…
x
Reference in New Issue
Block a user