Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

move includes outside namespace crow #479

Merged
merged 1 commit into from
Jun 22, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 8 additions & 13 deletions include/crow/http_parser_merged.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,7 @@

// clang-format off
#pragma once
#include "crow/common.h"
namespace crow
{
extern "C" {

#include <stddef.h>
#if defined(_WIN32) && !defined(__MINGW32__) && \
(!defined(_MSC_VER) || _MSC_VER<1600) && !defined(__WINE__)
Expand All @@ -35,9 +31,15 @@ typedef unsigned __int64 uint64_t;
#else
#include <stdint.h>
#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
* before including this header then the default is used. To
* change the maximum header size, define the macro in the build
Expand Down Expand Up @@ -188,12 +190,6 @@ enum http_errno {


// 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;

#ifndef CROW_ULLONG_MAX
Expand Down Expand Up @@ -2011,7 +2007,6 @@ http_parser_set_max_header_size(uint32_t size) {
#undef CROW_STRICT_CHECK
#undef CROW_NEW_MESSAGE

}
}

// clang-format on