ext: lib: tinycbor: fix half-FP feature compilation

half-FP feature requires <math.h> form newlib_libc. It was include
wrongly by default. This path fix conduction for related include
directive.

Signed-off-by: Andrzej Puzdrowski <andrzej.puzdrowski@nordicsemi.no>
This commit is contained in:
Andrzej Puzdrowski 2018-04-06 15:27:08 +02:00 committed by Anas Nashif
parent ca1cb05438
commit 00f6fc9643

View file

@ -41,7 +41,7 @@ extern "C" {
# include <assert.h>
#endif
#include <float.h>
#ifndef CBOR_NO_FLOATING_TYPE
#ifndef CBOR_NO_HALF_FLOAT_TYPE
#include <math.h>
#endif
#include <stddef.h>