From 761604d0445ce169bf81aa0e26abf503e464bbb8 Mon Sep 17 00:00:00 2001 From: Michele Caini Date: Wed, 2 Dec 2020 11:04:21 +0100 Subject: [PATCH] config: favor detection of clang over that of msvc, otherwise clang-cl will fail --- src/entt/config/config.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/entt/config/config.h b/src/entt/config/config.h index 291c781f7..59ccf9b76 100644 --- a/src/entt/config/config.h +++ b/src/entt/config/config.h @@ -42,14 +42,14 @@ #ifndef ENTT_STANDARD_CPP -# if defined _MSC_VER -# define ENTT_PRETTY_FUNCTION __FUNCSIG__ -# define ENTT_PRETTY_FUNCTION_PREFIX '<' -# define ENTT_PRETTY_FUNCTION_SUFFIX '>' -# elif defined __clang__ || defined __GNUC__ +# if defined __clang__ || defined __GNUC__ # define ENTT_PRETTY_FUNCTION __PRETTY_FUNCTION__ # define ENTT_PRETTY_FUNCTION_PREFIX '=' # define ENTT_PRETTY_FUNCTION_SUFFIX ']' +# elif defined _MSC_VER +# define ENTT_PRETTY_FUNCTION __FUNCSIG__ +# define ENTT_PRETTY_FUNCTION_PREFIX '<' +# define ENTT_PRETTY_FUNCTION_SUFFIX '>' # endif #endif