Fix compiler error when QCBOR_DISABLE_INDEFINITE_LENGTH_STRINGS is defined (#142)
A problem with compiling the test fan out was introduced with fix to #135
Co-authored-by: Laurence Lundblade <lgl@securitytheory.com>
diff --git a/test/qcbor_decode_tests.c b/test/qcbor_decode_tests.c
index edb0861..e0d8202 100644
--- a/test/qcbor_decode_tests.c
+++ b/test/qcbor_decode_tests.c
@@ -6050,6 +6050,8 @@
return 0;
}
+#ifndef QCBOR_DISABLE_INDEFINITE_LENGTH_STRINGS
+
int32_t CBORTestIssue134()
{
QCBORDecodeContext DCtx;
@@ -6073,6 +6075,8 @@
return uCBORError;
}
+#endif /* QCBOR_DISABLE_INDEFINITE_LENGTH_STRINGS */
+
int32_t CBORSequenceDecodeTests(void)
{
QCBORDecodeContext DCtx;