SVNからのミラー
This commit is contained in:
67
crow/settings.h
Normal file
67
crow/settings.h
Normal file
@@ -0,0 +1,67 @@
|
||||
#pragma once
|
||||
// settings for crow
|
||||
// TODO(ipkn) replace with runtime config. libucl?
|
||||
|
||||
/* #ifdef - enables debug mode */
|
||||
//#define CROW_ENABLE_DEBUG
|
||||
|
||||
/* #ifdef - enables logging */
|
||||
#define CROW_ENABLE_LOGGING
|
||||
|
||||
/* #ifdef - enforces section 5.2 and 6.1 of RFC6455 (only accepting masked messages from clients) */
|
||||
//#define CROW_ENFORCE_WS_SPEC
|
||||
|
||||
/* #define - specifies log level */
|
||||
/*
|
||||
Debug = 0
|
||||
Info = 1
|
||||
Warning = 2
|
||||
Error = 3
|
||||
Critical = 4
|
||||
|
||||
default to INFO
|
||||
*/
|
||||
#ifndef CROW_LOG_LEVEL
|
||||
#define CROW_LOG_LEVEL 1
|
||||
#endif
|
||||
|
||||
#ifndef CROW_STATIC_DIRECTORY
|
||||
#define CROW_STATIC_DIRECTORY "static/"
|
||||
#endif
|
||||
#ifndef CROW_STATIC_ENDPOINT
|
||||
#define CROW_STATIC_ENDPOINT "/static/<path>"
|
||||
#endif
|
||||
|
||||
// compiler flags
|
||||
#if defined(_MSVC_LANG) && _MSVC_LANG >= 201402L
|
||||
#define CROW_CAN_USE_CPP14
|
||||
#endif
|
||||
#if __cplusplus >= 201402L
|
||||
#define CROW_CAN_USE_CPP14
|
||||
#endif
|
||||
|
||||
#if defined(_MSVC_LANG) && _MSVC_LANG >= 201703L
|
||||
#define CROW_CAN_USE_CPP17
|
||||
#endif
|
||||
#if __cplusplus >= 201703L
|
||||
#define CROW_CAN_USE_CPP17
|
||||
#if defined(__GNUC__) && __GNUC__ < 8
|
||||
#define CROW_FILESYSTEM_IS_EXPERIMENTAL
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#if defined(_MSC_VER)
|
||||
#if _MSC_VER < 1900
|
||||
#define CROW_MSVC_WORKAROUND
|
||||
#define constexpr const
|
||||
#define noexcept throw()
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#if defined(__GNUC__) && __GNUC__ == 8 && __GNUC_MINOR__ < 4
|
||||
#if __cplusplus > 201103L
|
||||
#define CROW_GCC83_WORKAROUND
|
||||
#else
|
||||
#error "GCC 8.1 - 8.3 has a bug that prevents Crow from compiling with C++11. Please update GCC to > 8.3 or use C++ > 11."
|
||||
#endif
|
||||
#endif
|
||||
Reference in New Issue
Block a user