Huge thanks to our Platinum Members Endace and LiveAction,
and our Silver Member Veeam, for supporting the Wireshark Foundation and project.

Wireshark-dev: Re: [Wireshark-dev] including GPLv3 autoconf macro in Wireshark

From: Jakub Zawadzki <darkjames-ws@xxxxxxxxxxxx>
Date: Fri, 18 May 2012 21:16:03 +0200
Hi,

On Fri, May 18, 2012 at 02:55:06PM -0400, Jeff Morriss wrote:
> I found out recently that Wireshark needs the Z_BLOCK macro which is 
> only in zlib 1.2.0.5 and later.  Rather than checking explicitly for the 
> version (which seemed like it would be a pain) I thought I'd check for 
> the macro.
> [...]
> Or do I have to find another solution?

I propose another solution: 

  #ifdef Z_BLOCK
    /* when preset */
  #else
    /* when no */
  #endif