[dev] NGX_VERSION_HEX

Grzegorz Nosek grzegorz.nosek at gmail.com
Fri Nov 23 19:33:38 MSK 2007


2007/11/23, Manlio Perillo <manlio_perillo at libero.it>:
> Igor, do you plan to add a macro with an usable nginx version number?

Seconded. I think it's a good idea. Maybe stuff like (off the top of my head):

#define NGX_VERSION_NUMBER(a,b,c) (((a) << 24) | ((b) << 16) | ((c) << 8))
#define NGX_VERSION NGX_VERSION_NUMBER(0,5,33)

#if (NGX_VERSION < NGX_VERSION_NUMBER(0,6,0))
#error Development version only!
#endif

Best regards,
 Grzegorz Nosek





More information about the nginx mailing list