Skip to content

Commit

Permalink
fix msvc compilation
Browse files Browse the repository at this point in the history
  • Loading branch information
BlackMATov committed Feb 11, 2024
1 parent 78d7ee5 commit da757ae
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
6 changes: 5 additions & 1 deletion develop/singles/headers/meta.hpp/meta_all.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,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

//
//
Expand Down
6 changes: 5 additions & 1 deletion headers/meta.hpp/meta_base/base.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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

//
//
Expand Down

0 comments on commit da757ae

Please sign in to comment.