Skip to content

Commit

Permalink
Merge pull request #14 from cpicanco/master
Browse files Browse the repository at this point in the history
Missing conditional compilation
  • Loading branch information
bvarga committed Mar 20, 2015
2 parents f5d6b71 + 84dc5a5 commit 50a28b4
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion zmqapi.pas
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
Copyright (c) 2012 Varga Balázs (bb.varga@gmail.com)
Copyright (c) 2012 Varga Balázs (bb.varga@gmail.com)
This file is part of 0MQ Delphi binding
Expand Down Expand Up @@ -2615,8 +2615,12 @@ procedure ZMQProxy( frontend, backend, capture: TZMQSocket );
p := capture.SocketPtr
else
p := nil;

{$ifdef zmq3}
if zmq_proxy( frontend.SocketPtr, backend.SocketPtr, p ) <> -1 then
raise EZMQException.Create( 'Proxy does not return -1' );
{$endif}

//raise EZMQException.Create;
end;

Expand Down Expand Up @@ -2695,7 +2699,9 @@ function console_handler( dwCtrlType: DWORD ): BOOL;

procedure ZMQTerminate;
begin
{$ifndef UNIX}
GenerateConsoleCtrlEvent( CTRL_C_EVENT, 0 );
{$endif}
end;

{ TZMQThread }
Expand Down

0 comments on commit 50a28b4

Please sign in to comment.