fix msvc compilation

This commit is contained in:
BlackMATov
2024-02-11 08:32:17 +07:00
parent 78d7ee5ccb
commit da757ae6e5
2 changed files with 10 additions and 2 deletions

View File

@@ -123,7 +123,11 @@
//
//
#define META_HPP_ALLOCA(size) __builtin_alloca(size)
#if META_HPP_DETAIL_COMPILER_ID == META_HPP_DETAIL_MSVC_COMPILER_ID
# define META_HPP_ALLOCA(size) _alloca(size)
#else
# define META_HPP_ALLOCA(size) __builtin_alloca(size)
#endif
//
//