diff --git a/include/wx/defs.h b/include/wx/defs.h index a1c2ea5b15..2bb24814fd 100644 --- a/include/wx/defs.h +++ b/include/wx/defs.h @@ -328,6 +328,9 @@ typedef short int WXTYPE; #define wx_truncate_cast(t, x) wx_truncate_cast_impl(x) +#elif defined(__clang__) + #define wx_truncate_cast(t, x) static_cast(x) + #elif defined(__VISUALC__) && __VISUALC__ >= 1310 template inline T wx_truncate_cast_impl(X x)