From fed91842fe12e62ebab664803adecfc78f99bba5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Branimir=20Karad=C5=BEi=C4=87?= Date: Sat, 22 Oct 2016 21:47:31 -0700 Subject: [PATCH] Fixed BX_TYPE_IS_POD macro. --- include/bx/macros.h | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/include/bx/macros.h b/include/bx/macros.h index 90a0ca8..d565fca 100644 --- a/include/bx/macros.h +++ b/include/bx/macros.h @@ -7,6 +7,7 @@ #define BX_MACROS_H_HEADER_GUARD #include "bx.h" +#include /// #if BX_COMPILER_MSVC @@ -180,12 +181,10 @@ #endif // BX_COMPILER_ /// -#if BX_COMPILER_GCC && defined(__is_pod) -# define BX_TYPE_IS_POD(t) __is_pod(t) -#elif BX_COMPILER_MSVC +#if BX_COMPILER_MSVC # define BX_TYPE_IS_POD(t) (!__is_class(t) || __is_pod(t)) #else -# define BX_TYPE_IS_POD(t) false +# define BX_TYPE_IS_POD(t) std::is_pod::value #endif /// #define BX_CLASS_NO_DEFAULT_CTOR(_class) \