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 *
463463 return CborNoError ;
464464}
465465
466+ /* The following API requires a hosted C implementation (uses FILE*) */
467+ #if !defined(__STDC_HOSTED__ ) || __STDC_HOSTED__ - 0 == 1
468+
466469/* Human-readable (dump) API */
467470CBOR_API CborError cbor_value_to_pretty_advance (FILE * out , CborValue * value );
468471CBOR_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
471474 return cbor_value_to_pretty_advance (out , & copy );
472475}
473476
477+ #endif /* __STDC_HOSTED__ check */
478+
474479#ifdef __cplusplus
475480}
476481#endif
You can’t perform that action at this time.
0 commit comments