adafruit / Adafruit_nRF52_Arduino

Adafruit code for the Nordic nRF52 BLE SoC on Arduino
Other
610 stars 494 forks source link

Allow common_func.h to compile without error when it is included inside extern "C" #675

Closed pyro9 closed 3 years ago

pyro9 commented 3 years ago

When a library includes something that includes common_func.h from inside an extern "C" {} block, compilation will fail. This is at least an infelicity. This PR forces C++ linking in the C++ only parts of common_func.h allowing it to compile without mysterious failures.