Without this, C++ applications which include this header file will give functions defined in it, namely qcbor_err_to_str, a C++ linkage. This will cause linking to fail, since the compiled QCBOR library would have a C linkage only.
Other header files already have this extern block, it was only missing from qcbor_common.h for no particular reason.
Without this, C++ applications which include this header file will give functions defined in it, namely
qcbor_err_to_str
, a C++ linkage. This will cause linking to fail, since the compiled QCBOR library would have a C linkage only.Other header files already have this extern block, it was only missing from qcbor_common.h for no particular reason.