mirror of
https://github.com/yse/easy_profiler.git
synced 2025-01-14 00:27:55 +08:00
[core] fix old windows build
This commit is contained in:
parent
20ee8340dd
commit
defca63809
@ -55,7 +55,7 @@ The Apache License, Version 2.0 (the "License");
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifndef EASY_ALIGNMENT_SIZE
|
#ifndef EASY_ALIGNMENT_SIZE
|
||||||
# define EASY_ALIGNMENT_SIZE alignof(std::max_align_t)
|
# define EASY_ALIGNMENT_SIZE EASY_ALIGNOF(std::max_align_t)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
EASY_CONSTEXPR auto EASY_ALIGN_SIZE = EASY_ALIGNMENT_SIZE;
|
EASY_CONSTEXPR auto EASY_ALIGN_SIZE = EASY_ALIGNMENT_SIZE;
|
||||||
|
@ -101,6 +101,9 @@
|
|||||||
|
|
||||||
// No noexcept support before Visual Studio 2015
|
// No noexcept support before Visual Studio 2015
|
||||||
# define EASY_NOEXCEPT throw()
|
# define EASY_NOEXCEPT throw()
|
||||||
|
|
||||||
|
// No alignof support before Visual Studio 2015
|
||||||
|
# define EASY_ALIGNOF(x) __alignof(x)
|
||||||
# endif
|
# endif
|
||||||
|
|
||||||
# if EASY_STD > 11 && _MSC_VER >= 1900
|
# if EASY_STD > 11 && _MSC_VER >= 1900
|
||||||
@ -238,6 +241,10 @@ static_assert(false, "EasyProfiler is not configured for using your compiler typ
|
|||||||
# define EASY_NOEXCEPT_AVAILABLE
|
# define EASY_NOEXCEPT_AVAILABLE
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifndef EASY_ALIGNOF
|
||||||
|
# define EASY_ALIGNOF(x) alignof(x)
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifndef PROFILER_API
|
#ifndef PROFILER_API
|
||||||
# define PROFILER_API
|
# define PROFILER_API
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user