* Specific pragma warnings for GNU
* Wrong struct/class forward declarations
Change-Id: Ia797176a955ca698266ffcb9b60ac05c1cdc91b2
Signed-off-by: Victor Cebollada <v.cebollada@samsung.com>
namespace Integration
{
-class Event;
+struct Event;
}
namespace Internal
{
-class GestureRequest;
+struct GestureRequest;
class Scene;
template< typename T>
namespace Dali
{
-class RotationGesture;
+struct RotationGesture;
namespace Internal
{
#endif
/// Use DALI_FALLTHROUGH in switch statements where one case is supposed to fall through into another case
+#define DALI_FALLTHROUGH
+#if __GNUC__
#if __has_cpp_attribute(fallthrough)
+#undef DALI_FALLTHROUGH
#define DALI_FALLTHROUGH [[fallthrough]]
-#else
-#define DALI_FALLTHROUGH
+#endif
#endif
#endif // DALI_COMMON_H
* @param[in] value the value to compare
* @return true if the value is equal to zero
*/
+#if __GNUC__
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wfloat-equal"
+#endif
inline bool EqualsZero( float value )
{
return value == 0.0f;
}
+#if __GNUC__
#pragma GCC diagnostic pop
+#endif
/**
* @brief Helper function to compare equality of two floating point values.
{
class TypeRegistry;
}
-class DefaultPropertyMetadata;
+struct DefaultPropertyMetadata;
/**
* @brief The TypeRegistry allows registration of type instance creation functions.