Skip to content

Commit 2e4cbf7

Browse files
committed
Removed inline specifier in functions that need to be exported
- `ngx_http_modsecurity_process_intervention` & `ngx_http_modsecurity_create_ctx` are exported by `ngx_http_modsecurity_module.c`, so they can't be declared as inline because the MSVC compiler will not export them in the generated object file.
1 parent fffc91d commit 2e4cbf7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

‎src/ngx_http_modsecurity_module.c‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ ngx_inline char *ngx_str_to_char(ngx_str_t a, ngx_pool_t *p)
136136
}
137137

138138

139-
ngx_inlineint
139+
int
140140
ngx_http_modsecurity_process_intervention (Transaction*transaction, ngx_http_request_t*r, ngx_int_tearly_log)
141141
{
142142
char*log=NULL;
@@ -259,7 +259,7 @@ ngx_http_modsecurity_cleanup(void *data)
259259
}
260260

261261

262-
ngx_inlinengx_http_modsecurity_ctx_t*
262+
ngx_http_modsecurity_ctx_t*
263263
ngx_http_modsecurity_create_ctx(ngx_http_request_t*r)
264264
{
265265
ngx_str_ts;

0 commit comments

Comments
(0)