diff --git a/ngx_http_fancyindex_module.c b/ngx_http_fancyindex_module.c index a719bc2..b59c6e9 100644 --- a/ngx_http_fancyindex_module.c +++ b/ngx_http_fancyindex_module.c @@ -35,16 +35,12 @@ typedef struct { #endif -#define _BIT(_n) (1 << (_n)) - -#define NGX_HTTP_FANCYINDEX_README_TOP (0) -#define NGX_HTTP_FANCYINDEX_README_PRE (0) -#define NGX_HTTP_FANCYINDEX_README_ASIS _BIT(1) -#define NGX_HTTP_FANCYINDEX_README_BOTTOM _BIT(2) -#define NGX_HTTP_FANCYINDEX_README_DIV _BIT(3) -#define NGX_HTTP_FANCYINDEX_README_IFRAME _BIT(4) - -#undef _BIT +#define NGX_HTTP_FANCYINDEX_README_TOP 0x00 +#define NGX_HTTP_FANCYINDEX_README_PRE 0x00 +#define NGX_HTTP_FANCYINDEX_README_ASIS 0x01 +#define NGX_HTTP_FANCYINDEX_README_BOTTOM 0x02 +#define NGX_HTTP_FANCYINDEX_README_DIV 0x04 +#define NGX_HTTP_FANCYINDEX_README_IFRAME 0x08 typedef struct {