mjansson / mdns

Public domain mDNS/DNS-SD library in C
The Unlicense
470 stars 120 forks source link

feat: add extern c to header file #16

Closed gocarlos closed 4 years ago

gocarlos commented 4 years ago

what

adds extern "C" to allow C code in cpp

why

when using the mdns.h file in cpp source code:

/home/ladmin/.conan/data/mdns/20200130/_/_/package/5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9/include/mdns.h:362:26: error: invalid conversion from ‘const void*’ to ‘const uint8_t*’ {aka ‘const unsigned char*’} [-fpermissive]
  362 |  const uint8_t* buffer = rawdata;
      |                          ^~~~~~~
      |                          |
      |                          const void*
gocarlos commented 4 years ago

ready for review/merge