1
0

080-zigbee_wrapper-do-not-check-for-floating-point.patch 1.1 KB

12345678910111213141516171819202122232425262728293031
  1. From df8360447163762c63994dcb07f9e69a5a365a1c Mon Sep 17 00:00:00 2001
  2. From: Hauke Mehrtens <hauke@hauke-m.de>
  3. Date: Sun, 8 Jan 2017 22:01:57 +0100
  4. Subject: [PATCH 8/8] zigbee_wrapper: do not check for floating point
  5. This makes the compile fail for soft float builds. In such builds the
  6. double is still 64 bit long.
  7. Change-Id: I45d3f19b49f5d23d2b65307738a362765c5ea1c2
  8. Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
  9. ---
  10. plugins/zigbee_wrapper/src/zigbee_wrapper.c | 8 --------
  11. 1 file changed, 8 deletions(-)
  12. --- a/plugins/zigbee_wrapper/src/zigbee_wrapper.c
  13. +++ b/plugins/zigbee_wrapper/src/zigbee_wrapper.c
  14. @@ -37,14 +37,6 @@
  15. #include <math.h>
  16. #include <errno.h>
  17. -// The following #define must be here under "math.h".
  18. -// This ifdef ensures that "__STDC_IEC_559__" is defined. If it is defined,
  19. -// then we are guaranteed that the 'double' type is 64-bit. Otherwise, the
  20. -// compilation of this file should fail because we are no longer guaranteed.
  21. -#ifndef __STDC_IEC_559__
  22. -#error "Requires IEEE 754 floating point!"
  23. -#endif
  24. -
  25. #include "zigbee_wrapper.h"
  26. #include "telegesis_wrapper.h"
  27. #include "pluginlist.h"