Skip to content

Commit

Permalink
🐛 Solving macro redefinition #8
Browse files Browse the repository at this point in the history
  • Loading branch information
ADD-SP committed Oct 25, 2020
1 parent 7cfc94b commit 28e1c8a
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions inc/ngx_http_waf_module_macro.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,16 @@
#define WHITE_URL_FILE ("white-url")
#define WHITE_REFERER_FILE ("white-referer")

#ifndef FALSE
#define FALSE (0)
#endif
#ifndef TRUE
#define TRUE (1)
#endif

#define SUCCESS (1)
#define PROCESSING (2)
#define FAIL (0)
#define TRUE (1)
#define FALSE (0)
#define MATCHED (1)
#define NOT_MATCHED (0)

Expand Down

0 comments on commit 28e1c8a

Please sign in to comment.