MAX_PATH_SIZE -> MG_MAX_PATH

PUBLISHED_FROM=32bda9e86a11cad3b908d211a1f7bc9d27312874
This commit is contained in:
Deomid Ryabkov authored and Cesanta Bot committed 2017-06-20 18:06:36 +00:00
1 parent 27094896b1
commit 474e065a30
2 files changed
+22 -26

No files matched your search

+6 -10
View File
@@ -3891,8 +3891,12 @@ int mg_normalize_uri_path(const struct mg_str *in, struct mg_str *out);
extern "C" {
#endif /* __cplusplus */
#ifndef MAX_PATH_SIZE
#define MAX_PATH_SIZE 500
#ifndef MG_MAX_PATH
#ifdef PATH_MAX
#define MG_MAX_PATH PATH_MAX
#else
#define MG_MAX_PATH 256
#endif
#endif
/*
@@ -4123,14 +4127,6 @@ extern "C" {
#define MG_MAX_HTTP_REQUEST_SIZE 1024
#endif
#ifndef MG_MAX_PATH
#ifdef PATH_MAX
#define MG_MAX_PATH PATH_MAX
#else
#define MG_MAX_PATH 256
#endif
#endif
#ifndef MG_MAX_HTTP_SEND_MBUF
#define MG_MAX_HTTP_SEND_MBUF 1024
#endif