0
0
mirror of https://github.com/yse/easy_profiler.git synced 2024-12-26 08:01:51 +08:00

[core] fix old windows build

This commit is contained in:
Victor Zarubkin 2019-10-30 09:34:17 +03:00
parent 20ee8340dd
commit defca63809
2 changed files with 8 additions and 1 deletions

View File

@ -55,7 +55,7 @@ The Apache License, Version 2.0 (the "License");
#endif
#ifndef EASY_ALIGNMENT_SIZE
# define EASY_ALIGNMENT_SIZE alignof(std::max_align_t)
# define EASY_ALIGNMENT_SIZE EASY_ALIGNOF(std::max_align_t)
#endif
EASY_CONSTEXPR auto EASY_ALIGN_SIZE = EASY_ALIGNMENT_SIZE;

View File

@ -101,6 +101,9 @@
// No noexcept support before Visual Studio 2015
# define EASY_NOEXCEPT throw()
// No alignof support before Visual Studio 2015
# define EASY_ALIGNOF(x) __alignof(x)
# endif
# 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
#endif
#ifndef EASY_ALIGNOF
# define EASY_ALIGNOF(x) alignof(x)
#endif
#ifndef PROFILER_API
# define PROFILER_API
#endif