Fix test fan out problem
diff --git a/inc/qcbor/qcbor_common.h b/inc/qcbor/qcbor_common.h
index 199451d..fe4f213 100644
--- a/inc/qcbor/qcbor_common.h
+++ b/inc/qcbor/qcbor_common.h
@@ -36,7 +36,6 @@
#ifndef qcbor_common_h
#define qcbor_common_h
-//#define QCBOR_DISABLE_PREFERRED_FLOAT
#ifdef __cplusplus
extern "C" {
#if 0
diff --git a/src/qcbor_main_decode.c b/src/qcbor_main_decode.c
index 97b1d89..cfaf969 100644
--- a/src/qcbor_main_decode.c
+++ b/src/qcbor_main_decode.c
@@ -782,6 +782,19 @@
}
#else /* ! QCBOR_DISABLE_DECODE_CONFORMANCE && ! QCBOR_DISABLE_PREFERRED_FLOAT */
+#ifndef QCBOR_DISABLE_PREFERRED_FLOAT
+static QCBORError
+QCBORDecode_Private_HalfConformance(const double d, const QCBORDecodeMode uConfigFlags)
+{
+ (void)d;
+ if(uConfigFlags & (QCBOR_DECODE_ONLY_REDUCED_FLOATS | QCBOR_DECODE_ONLY_PREFERRED_NUMBERS)) {
+ return QCBOR_ERR_CANT_CHECK_FLOAT_CONFORMANCE;
+ } else {
+ return QCBOR_SUCCESS;
+ }
+}
+#endif
+
static QCBORError
QCBORDecode_Private_SingleConformance(const float f, const QCBORDecodeMode uConfigFlags)