forked from fmtlib/fmt
Require inline namespaces
This commit is contained in:
@ -211,31 +211,13 @@
|
|||||||
# endif
|
# endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifndef FMT_USE_INLINE_NAMESPACES
|
|
||||||
# if FMT_HAS_FEATURE(cxx_inline_namespaces) || FMT_GCC_VERSION >= 404 || \
|
|
||||||
(FMT_MSC_VER >= 1900 && (!defined(_MANAGED) || !_MANAGED))
|
|
||||||
# define FMT_USE_INLINE_NAMESPACES 1
|
|
||||||
# else
|
|
||||||
# define FMT_USE_INLINE_NAMESPACES 0
|
|
||||||
# endif
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifndef FMT_BEGIN_NAMESPACE
|
#ifndef FMT_BEGIN_NAMESPACE
|
||||||
# if FMT_USE_INLINE_NAMESPACES
|
|
||||||
# define FMT_INLINE_NAMESPACE inline namespace
|
|
||||||
# define FMT_END_NAMESPACE \
|
|
||||||
} \
|
|
||||||
}
|
|
||||||
# else
|
|
||||||
# define FMT_INLINE_NAMESPACE namespace
|
|
||||||
# define FMT_END_NAMESPACE \
|
|
||||||
} \
|
|
||||||
using namespace v8; \
|
|
||||||
}
|
|
||||||
# endif
|
|
||||||
# define FMT_BEGIN_NAMESPACE \
|
# define FMT_BEGIN_NAMESPACE \
|
||||||
namespace fmt { \
|
namespace fmt { \
|
||||||
FMT_INLINE_NAMESPACE v8 {
|
inline namespace v8 {
|
||||||
|
# define FMT_END_NAMESPACE \
|
||||||
|
} \
|
||||||
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifndef FMT_MODULE_EXPORT
|
#ifndef FMT_MODULE_EXPORT
|
||||||
|
Reference in New Issue
Block a user