[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[Libevent-users] evbuffer_readln(LF) equivalent in 1.4



Hi,

I'm calling evbuffer_readln(..., EVBUFFER_EOL_LF), but I have to
support 1.4 as well. Is there an equivalent invocation?
evbuffer_readline()?

In addition, how do I check for the libevent version? I thought of
_EVENT_VERSION, but it looks like a string, so I can't do a

  #if _EVENT_VERSION >= 1.4
  ...
  #endif

straight up, so that's out. (Or could I?)

Thanks.

--
Cheers,
Ray Chuan
***********************************************************************
To unsubscribe, send an e-mail to majordomo@xxxxxxxxxxxxx with
unsubscribe libevent-users    in the body.