File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -463,6 +463,9 @@ CBOR_INLINE_API CborError cbor_value_get_double(const CborValue *value, double *
463
463
return CborNoError ;
464
464
}
465
465
466
+ /* The following API requires a hosted C implementation (uses FILE*) */
467
+ #if !defined(__STDC_HOSTED__ ) || __STDC_HOSTED__ - 0 == 1
468
+
466
469
/* Human-readable (dump) API */
467
470
CBOR_API CborError cbor_value_to_pretty_advance (FILE * out , CborValue * value );
468
471
CBOR_INLINE_API CborError cbor_value_to_pretty (FILE * out , const CborValue * value )
@@ -471,6 +474,8 @@ CBOR_INLINE_API CborError cbor_value_to_pretty(FILE *out, const CborValue *value
471
474
return cbor_value_to_pretty_advance (out , & copy );
472
475
}
473
476
477
+ #endif /* __STDC_HOSTED__ check */
478
+
474
479
#ifdef __cplusplus
475
480
}
476
481
#endif
You can’t perform that action at this time.
0 commit comments