lede-packages-rs

git clone git://archive.git.mtrnord.blog/MTRNord/lede-packages-rs.git
Log | Files | Refs | README | LICENSE

080-zigbee_wrapper-do-not-check-for-floating-point.patch (1127B)


      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 
      6 This makes the compile fail for soft float builds. In such builds the
      7 double is still 64 bit long.
      8 
      9 Change-Id: I45d3f19b49f5d23d2b65307738a362765c5ea1c2
     10 Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
     11 ---
     12  plugins/zigbee_wrapper/src/zigbee_wrapper.c | 8 --------
     13  1 file changed, 8 deletions(-)
     14 
     15 --- a/plugins/zigbee_wrapper/src/zigbee_wrapper.c
     16 +++ b/plugins/zigbee_wrapper/src/zigbee_wrapper.c
     17 @@ -37,14 +37,6 @@
     18  #include <math.h>
     19  #include <errno.h>
     20  
     21 -// The following #define must be here under "math.h".
     22 -// This ifdef ensures that "__STDC_IEC_559__" is defined. If it is defined,
     23 -// then we are guaranteed that the 'double' type is 64-bit. Otherwise, the
     24 -// compilation of this file should fail because we are no longer guaranteed.
     25 -#ifndef __STDC_IEC_559__
     26 -#error "Requires IEEE 754 floating point!"
     27 -#endif
     28 -
     29  #include "zigbee_wrapper.h"
     30  #include "telegesis_wrapper.h"
     31  #include "pluginlist.h"