mirror of
https://github.com/yse/easy_profiler.git
synced 2024-12-25 23:40:51 +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
|
||||
|
||||
#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;
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user