We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d9a8d83 commit 33a563fCopy full SHA for 33a563f
src/cbor.h
@@ -536,6 +536,9 @@ enum CborValidationFlags {
536
537
CBOR_API CborError cbor_value_validate(const CborValue *it, int flags);
538
539
+/* The following API requires a hosted C implementation (uses FILE*) */
540
+#if !defined(__STDC_HOSTED__) || __STDC_HOSTED__-0 == 1
541
+
542
/* Human-readable (dump) API */
543
544
enum CborPrettyFlags {
@@ -559,6 +562,8 @@ CBOR_INLINE_API CborError cbor_value_to_pretty(FILE *out, const CborValue *value
559
562
return cbor_value_to_pretty_advance_flags(out, ©, CborPrettyDefaultFlags);
560
563
}
561
564
565
+#endif /* __STDC_HOSTED__ check */
566
567
#ifdef __cplusplus
568
569
#endif
0 commit comments