aboutsummaryrefslogtreecommitdiff
path: root/src/core/ngx_string.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/ngx_string.h')
-rw-r--r--src/core/ngx_string.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/core/ngx_string.h b/src/core/ngx_string.h
index ddfdaccee..3e28abb68 100644
--- a/src/core/ngx_string.h
+++ b/src/core/ngx_string.h
@@ -10,8 +10,11 @@ typedef struct {
char *data;
} ngx_str_t;
-#if (WIN32)
+#define ngx_string(str) { sizeof(str) - 1, str }
+
+
+#if (WIN32)
#define ngx_memzero ZeroMemory