[Tizen] Temporary fix, Will be removed later, Fix Emul crash issue
authorJoogab Yun <joogab.yun@samsung.com>
Mon, 16 Sep 2019 06:26:23 +0000 (15:26 +0900)
committerJoogab Yun <joogab.yun@samsung.com>
Mon, 16 Sep 2019 06:26:27 +0000 (15:26 +0900)
This reverts commit 12cb0919f406aeb20f63f83f7ea52828e50db8c8.

Change-Id: I5608fbdb58d1ee5555cdfd74e41b2e835a4ce507

dali/public-api/math/vector3.cpp

index 2b410d0..3514958 100644 (file)
@@ -97,6 +97,16 @@ Vector3& Vector3::operator*=(const Quaternion& rhs)
   return *this;
 }
 
+// Temporary fix, Will be removed later, Fix Emul crash issue
+#ifndef _ARCH_ARM_
+#undef fabsf
+float fabsf(float value)
+{
+  if (value < 0) return -value;
+  return value;
+}
+#endif
+
 bool Vector3::operator==(const Vector3& rhs) const
 {
   if (fabsf(x - rhs.x) > GetRangedEpsilon(x, rhs.x) )