mirror of
https://github.com/CrowCpp/Crow.git
synced 2024-06-07 21:10:44 +00:00
move includes outside namespace crow
This commit is contained in:
parent
8d7e53d40e
commit
cde0e67b06
@ -13,11 +13,7 @@
|
|||||||
|
|
||||||
// clang-format off
|
// clang-format off
|
||||||
#pragma once
|
#pragma once
|
||||||
#include "crow/common.h"
|
|
||||||
namespace crow
|
|
||||||
{
|
|
||||||
extern "C" {
|
extern "C" {
|
||||||
|
|
||||||
#include <stddef.h>
|
#include <stddef.h>
|
||||||
#if defined(_WIN32) && !defined(__MINGW32__) && \
|
#if defined(_WIN32) && !defined(__MINGW32__) && \
|
||||||
(!defined(_MSC_VER) || _MSC_VER<1600) && !defined(__WINE__)
|
(!defined(_MSC_VER) || _MSC_VER<1600) && !defined(__WINE__)
|
||||||
@ -35,9 +31,15 @@ typedef unsigned __int64 uint64_t;
|
|||||||
#else
|
#else
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
#endif
|
#endif
|
||||||
|
#include <assert.h>
|
||||||
|
#include <ctype.h>
|
||||||
|
#include <string.h>
|
||||||
|
#include <limits.h>
|
||||||
|
}
|
||||||
|
|
||||||
|
#include "crow/common.h"
|
||||||
|
namespace crow
|
||||||
|
{
|
||||||
/* Maximium header size allowed. If the macro is not defined
|
/* Maximium header size allowed. If the macro is not defined
|
||||||
* before including this header then the default is used. To
|
* before including this header then the default is used. To
|
||||||
* change the maximum header size, define the macro in the build
|
* change the maximum header size, define the macro in the build
|
||||||
@ -188,12 +190,6 @@ enum http_errno {
|
|||||||
|
|
||||||
|
|
||||||
// SOURCE (.c) CODE
|
// SOURCE (.c) CODE
|
||||||
#include <assert.h>
|
|
||||||
#include <stddef.h>
|
|
||||||
#include <ctype.h>
|
|
||||||
#include <string.h>
|
|
||||||
#include <limits.h>
|
|
||||||
|
|
||||||
static uint32_t max_header_size = CROW_HTTP_MAX_HEADER_SIZE;
|
static uint32_t max_header_size = CROW_HTTP_MAX_HEADER_SIZE;
|
||||||
|
|
||||||
#ifndef CROW_ULLONG_MAX
|
#ifndef CROW_ULLONG_MAX
|
||||||
@ -2011,7 +2007,6 @@ http_parser_set_max_header_size(uint32_t size) {
|
|||||||
#undef CROW_STRICT_CHECK
|
#undef CROW_STRICT_CHECK
|
||||||
#undef CROW_NEW_MESSAGE
|
#undef CROW_NEW_MESSAGE
|
||||||
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// clang-format on
|
// clang-format on
|
||||||
|
Loading…
Reference in New Issue
Block a user