COMPMID-417: Fix half point build for bare metal
Change-Id: I1e5668f9a4e2a02fd52e79e4637575b65e74c707
Reviewed-on: http://mpd-gerrit.cambridge.arm.com/88388
Reviewed-by: Moritz Pflanzer <moritz.pflanzer@arm.com>
Tested-by: Kaizen <jeremy.johnson+kaizengerrit@arm.com>
diff --git a/support/Half.h b/support/Half.h
index 0bc5e62..ae31be3 100644
--- a/support/Half.h
+++ b/support/Half.h
@@ -24,10 +24,10 @@
#ifndef __ARM_COMPUTE_HALF_H__
#define __ARM_COMPUTE_HALF_H__
-#ifdef __ANDROID__
+#if(__ANDROID__ || BARE_METAL)
// Android toolchain is broken and doesn't support all CPP11 math functions.
#define HALF_ENABLE_CPP11_CMATH 0
-#endif /* __ANDROID__ */
+#endif /* __ANDROID__ || BARE_METAL */
// Set style to round to nearest
#define HALF_ROUND_STYLE 1